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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Gaizka
Regular Visitor

Sum from different tables based on other values

I have some tables with the same information:

 

Table 1, 2, 3...

 

Date     Country     number of sales

 

 

 

At the same time, I have created 2 tables with unique values for Country and Date to relate everything and that´s working fine.

 

However I would like to have a table with the sum of table 1, 2, 3 for the same date and country.

 

What is the best way to do that?

 

Thanks a lot

1 ACCEPTED SOLUTION
v-huizhn-msft
Employee
Employee

Hi @Gaizka,

Please create a new table by clicking "new table" under Modeling on Home page, type the following DAX.

New Table=
SUMMARIZE (
    UNION ( UNION ( Table1, Table2 ), Table3 ),
    [Date],
    [Country],
    "sum sales", SUM ( [number of sales] )
)


If this still doesn't resolve your issue, please create dummay sample table and list expected result, so that we can share more detailed solution.

Best Regards,
Angelia

View solution in original post

2 REPLIES 2
v-huizhn-msft
Employee
Employee

Hi @Gaizka,

Have you resolved your issue? If you have, welcome to share your solution or mark the right reply as answer. More people will benefit from here.

Best Regards,
Angelia

v-huizhn-msft
Employee
Employee

Hi @Gaizka,

Please create a new table by clicking "new table" under Modeling on Home page, type the following DAX.

New Table=
SUMMARIZE (
    UNION ( UNION ( Table1, Table2 ), Table3 ),
    [Date],
    [Country],
    "sum sales", SUM ( [number of sales] )
)


If this still doesn't resolve your issue, please create dummay sample table and list expected result, so that we can share more detailed solution.

Best Regards,
Angelia

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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