Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I need to create a M:M link between two tables with similar structures. (One is historical data. The other is forecast data.) The data is categorized by Market and Submarket, like this:
Market | Submarket | Region | Sales |
Retail | Grocery | NA | 247 |
Retail | Grocery | EU | 656 |
Retail | Grocery | AP | 723 |
Retail | Department Stores | NA | 912 |
Retail | Department Stores | EU | 719 |
Retail | Department Stores | AP | 206 |
Retail | Online | NA | 861 |
Retail | Online | EU | 818 |
Retail | Online | AP | 919 |
Financial | Banking | NA | 231 |
Financial | Banking | EU | 326 |
Financial | Banking | AP | 299 |
Financial | Capital Markets | NA | 288 |
Financial | Capital Markets | EU | 982 |
Financial | Capital Markets | AP | 287 |
Financial | Insurance | NA | 243 |
Financial | Insurance | EU | 805 |
Financial | Insurance | AP | 534 |
What I want is a table with distinct values of submarket grouped by market, like this:
Market | Submarket |
Financial | Banking |
Financial | Capital Markets |
Financial | Insurance |
Retail | Department Stores |
Retail | Grocery |
Retail | Online |
I am not trying to summarize any values. I just want the hierarchical data structure. I've tried the SUMMARIZE and CALCULATETABLE functions, but I'm not able to get the result I'm looking for.
Solved! Go to Solution.
@Anonymous
SUMMARIZE works:
Proud to be a Super User!
Paul on Linkedin.
@Anonymous
SUMMARIZE works:
Proud to be a Super User!
Paul on Linkedin.
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
@PaulDBrown Wow, that was a lot easier than I was making it. I somehow thougth I needed a summaried field when using the SUMMARIZE function.
Thanks very much for your help!
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
24 | |
10 | |
6 | |
6 | |
6 |
User | Count |
---|---|
29 | |
11 | |
11 | |
10 | |
6 |