Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Create hierarchical bridge table

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:

MarketSubmarketRegionSales
RetailGroceryNA247
RetailGroceryEU656
RetailGroceryAP723
RetailDepartment StoresNA912
RetailDepartment StoresEU719
RetailDepartment StoresAP206
RetailOnlineNA861
RetailOnlineEU818
RetailOnlineAP919
FinancialBankingNA231
FinancialBankingEU326
FinancialBankingAP299
FinancialCapital MarketsNA288
FinancialCapital MarketsEU982
FinancialCapital MarketsAP287
FinancialInsuranceNA243
FinancialInsuranceEU805
FinancialInsuranceAP534

What I want is a table with distinct values of submarket grouped by market, like this:

MarketSubmarket
FinancialBanking
FinancialCapital Markets
FinancialInsurance
RetailDepartment Stores
RetailGrocery
RetailOnline

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.

1 ACCEPTED SOLUTION
PaulDBrown
Community Champion
Community Champion

@Anonymous 

SUMMARIZE works:

result.JPG

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

3 REPLIES 3
PaulDBrown
Community Champion
Community Champion

@Anonymous 

SUMMARIZE works:

result.JPG

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Screenshot 2021-02-13 013047.png


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!

Anonymous
Not applicable

@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!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.