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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Create table of difference between two tables from a source

I have several files combined using power query. The first table is the data for the base file while the second table is the data for the compared file. The 2 tables are obliged to several universal slicers (applied to both tables coherently). I wish to make a new table comprising two columns, unit difference and unit percentage difference.

 

Example output:

Output.PNG

 

Here provided the example of pbix and files:

 

https://drive.google.com/drive/folders/1nYQ_Q3p7crChalNrWNdWb7sIdSqhBns9?usp=sharing

 

I would like to know how to do this. Appreciate any help given. Thank you.

1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your descriptin, here's my solution.

In Power Query, select Cruzer Capacity Plan table, then click Merge Queries>Merge Queries as New.

vkalyjmsft_0-1651227764359.png

Merge tables with the date column.

vkalyjmsft_1-1651227846064.png

Then add two custom columns.

unit difference=[Compared.Unit]-[Unit]
percentage difference=[unit difference]/[Unit]

Remove unwanted columns, get the new table.

vkalyjmsft_2-1651228057934.png

 

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

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
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your descriptin, here's my solution.

In Power Query, select Cruzer Capacity Plan table, then click Merge Queries>Merge Queries as New.

vkalyjmsft_0-1651227764359.png

Merge tables with the date column.

vkalyjmsft_1-1651227846064.png

Then add two custom columns.

unit difference=[Compared.Unit]-[Unit]
percentage difference=[unit difference]/[Unit]

Remove unwanted columns, get the new table.

vkalyjmsft_2-1651228057934.png

 

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

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

Anonymous
Not applicable

what you ask for is doable.
however, it would be useful to have tables in the format of the screen shot you showed in your post

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors