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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
jyouens
Frequent Visitor

Combining 2 data sets

I am trying to compare what values our system holds vs Excel files that people keep up to date. The idea is to compare and contrast so we can pinpoint errors

 

Both data sets can have multiple entries for the fields I'm interested in, 'Name', 'Month', 'Cost'. The only way to 'join' them up is by the Name as they are the same in both tables.

 

Essentially, what I'm looking for is to sum the total for the client per month, from both data sets and add them to visuals. 

 

An example below

 

jyouens_0-1709129312462.png

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @jyouens ,

The table data is shown below:

vzhouwenmsft_0-1709190834649.png

vzhouwenmsft_1-1709190841520.png

Please follow these steps:
1. Use the following DAX expression to create a table

 

Table = ADDCOLUMNS(
    SUMMARIZE('SYSTEM', 'SYSTEM'[Client Code], 'SYSTEM'[Client Name], 'SYSTEM'[Date]),
    "System Amount", CALCULATE(SUM('SYSTEM'[System Amount])),
    "Excel Amount",CALCULATE(SUM('EXCEL'[Excel Amount]),
     FILTER(ALL('EXCEL'),'EXCEL'[Client Code] = EARLIER('SYSTEM'[Client Code]) && 'EXCEL'[Client Name] = EARLIER('SYSTEM'[Client Name]) &&'EXCEL'[Date] = EARLIER('SYSTEM'[Date]))))

 

2. Final output

vzhouwenmsft_2-1709190921519.png

vzhouwenmsft_3-1709190929926.png

 

 


Best Regards,
Wenbin Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
jyouens
Frequent Visitor

worked perfectly, thank you @Anonymous 

Anonymous
Not applicable

Hi @jyouens ,

The table data is shown below:

vzhouwenmsft_0-1709190834649.png

vzhouwenmsft_1-1709190841520.png

Please follow these steps:
1. Use the following DAX expression to create a table

 

Table = ADDCOLUMNS(
    SUMMARIZE('SYSTEM', 'SYSTEM'[Client Code], 'SYSTEM'[Client Name], 'SYSTEM'[Date]),
    "System Amount", CALCULATE(SUM('SYSTEM'[System Amount])),
    "Excel Amount",CALCULATE(SUM('EXCEL'[Excel Amount]),
     FILTER(ALL('EXCEL'),'EXCEL'[Client Code] = EARLIER('SYSTEM'[Client Code]) && 'EXCEL'[Client Name] = EARLIER('SYSTEM'[Client Name]) &&'EXCEL'[Date] = EARLIER('SYSTEM'[Date]))))

 

2. Final output

vzhouwenmsft_2-1709190921519.png

vzhouwenmsft_3-1709190929926.png

 

 


Best Regards,
Wenbin Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.