Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

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.

3 Replies

    • Anonymous's avatar
      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!