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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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.






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!

CNENFRNL
Community Champion
Community Champion

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!

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric update to learn about new features.

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!

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.

Users online (25)