Forum Discussion
How can i resolve this problem?
- Mar 22, 2020
Have you tried the Filter function ?
Example in file with your source data "as is" in first sheet, and with your source data in a table in second sheet.
"=FILTER(Table1[Provinces];Table1[Countries]=G$1)"
Yes, it works. But i was after how i can get rid of blank cells. what was your strategy to get rid of blank cells ?
- SekoleyteMar 22, 2020Iron Contributor
Detlef_Lewin thank you for your answer. Power Query is a new world for me, i think i need to learn something about it, it looks useful. But i didn't understand how i can do what you did in Power Query for my issue 🙂🙂
- Detlef_LewinMar 22, 2020Silver Contributor
You can have a look at the queries.
The steps in principle:
Grouping "Countries" with "All Rows".
Added a custom column to get a list of provinces for every country.
Extracted values of column "Benutzerdefiniert" to get the provinces into one cell.
Removed column "AllData".
Split column "Benutzerdefiniert" by delimiter.
Transposed the table.
Promoted the headers.
- SekoleyteNov 26, 2022Iron Contributor
Years ago while i was experienced less than one year. It was the 1st time i met with new and legacy array functions. And power query was already 1st time i met. After more than 2.5 years later, i am trying to learn power bi and i saw my ex topic by accident. Thank you for power query solution. Because there were many things i learned yet, i was not enough experienced to understand your solution. Now i learned new things and your solution.