Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello,
I have a Dimension table with accounts and affiliations. The problem is i have multiple affiliations per account so when i link it to my customer table i can't filter easily from it.
What i have:
Account | Affiliation |
123 | McDonalds |
123 | BK |
345 | McDonalds |
345 | KFC |
777 | None |
828 | Panera |
What i want to create with Power Query
Account | Affiliation |
123 | McDonalds, BK |
345 | McDonalds, KFC |
777 | None |
828 | Panera |
Then filter by Affiliation. If i select McDonalds I'll get accounts 123 and 345,
if filter by
BK-Account 123
KFC-Account 345
Panera- Account 828
None- Account 777
Any help would be great.
Solved! Go to Solution.
HI @JimSales81
In Power Query you can combine by doing this:
Table.Group(#"Tipo cambiado", {"Account"}, {{"Affil", each Text.Combine([Affiliation],", "), type nullable text}})
To filter, I would try with Text filter (https://appsource.microsoft.com/en-us/product/power-bi-visuals/WA104381309)
HI @JimSales81
In Power Query you can combine by doing this:
Table.Group(#"Tipo cambiado", {"Account"}, {{"Affil", each Text.Combine([Affiliation],", "), type nullable text}})
To filter, I would try with Text filter (https://appsource.microsoft.com/en-us/product/power-bi-visuals/WA104381309)
User | Count |
---|---|
9 | |
8 | |
6 | |
6 | |
6 |