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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.