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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Ranjith_96
Helper I
Helper I

Tables with different level

Hi Power BI Community,

Please find my below table structure.

I have two tables: Orders and Marketing table

1. Order table has 4 columns - Date, Country, Channel and Total_Orders

2. Marketing table has 3 columns - Date, Country and Marketing_spend

The output I need is a table which has 4 columns - Date, Country, Total_Orders and Marketing_spend.

Ranjith_96_2-1689453411231.png

Problem is Orders table has Channel column, so order table is at Date, Country and Channel level but the marketing table is at Date and Country level. When I merge the two tables, marketing_spend is duplicated.

How can i get rid  of these issue? How can i join two table which are at different levels?

Note: I also need channel column, bcoz of other visuals in the report.

 

Any help would be really helpful. Thanks in Advance!!

 

In Tableau, I can do this by data blending concept.

 

 

2 REPLIES 2
Ranjith_96
Helper I
Helper I

Hi @gregoliveira . Thanks much for your response!

could you please look into this pbix which has the two tables and help me in doing the same using DAX.

doubt.pbix.

Thanks for your help.

@v-zhenbw-msft  seeking your help here on this post, Please assist. 

gregoliveira
Helper II
Helper II

Hi.

You can deal with this situation better using DAX and relations between tables. I will need a calendar table and a country table. After this, you can author some measures to split the marketing spend based, for example, in the total orders.

However, if you need to accomplish this in Power Query, you can first aggregate the Orders table by Date and Country to sum the Orders per Channel and then merge this this table with the Marketing table.

Hope this help you.

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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