Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
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!
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 13 | |
| 9 | |
| 9 | |
| 9 | |
| 8 |