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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
vijeth_sankethi
Frequent Visitor

Difference between 2 Cell values in a Matrix

Hi All, 

 

I am trying to achieve this simple feature in Power BI but due to my limited knowledge in Power BI, I am not able to achieve this. 

 

I have the following data. 

 

 Jun-17Jul-17Aug-17Sep-17Oct-17Nov-17Dec-17Jan-18Feb-18Mar-18Apr-18May-18Jun-18
Estimated Submissions 100104108112116120124128132136140144148
Estimated Applications50545760636669727578818487
Estimated Fundings10131619222528313437404346
              
Actual Submissions50515253545556575859606162
Actual Applications20212223242526272829303132
Actual Fundings10111213141516171819202122

 

Now I just want to add a new row below which just performs Actual Submissions - Estimated Submissions, Actual Applications - Estimated Applications and so on as mentioned below. 

 

Deviation Submissions-50-53-56-59-62-65-68-71-74-77-80-83-86
Deviation Applications-30-33-35-37-39-41-43-45-47-49-51-53-55
Deviation Fundings0-2-4-6-8-10-12-14-16-18-20-22-24

 

Can anyone give me some pointers as to how to achieve this?

 

Thanks,

Vijeth

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

Hi @vijeth_sankethi,

 

I entered some data to do a test. Based on my test, you can refer to below steps in query editor:
This picture show the data I entered.

w1.PNG

 

1.Pivot your [column3],choose the Values Column [Column2].

w2.PNG

 

2.Add the three Custom Columns to show your data.
Deviation Submission=[Actual Submissions]-[Estimated Submissions]
Deviation Application=[Actual Applications]-[Estimated Applications]
Deviation Fundings=[Actual Fundings]-[Estimated Fundings]


3. Unpivot all of your columns except the [Column1].

w3.PNGw5.PNG

 

4.Create a Matrix visual to show your data.

 

w6.PNG

 

For more information, see attached pbix file. 

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
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-qiuyu-msft
Community Support
Community Support

Hi @vijeth_sankethi,

 

I entered some data to do a test. Based on my test, you can refer to below steps in query editor:
This picture show the data I entered.

w1.PNG

 

1.Pivot your [column3],choose the Values Column [Column2].

w2.PNG

 

2.Add the three Custom Columns to show your data.
Deviation Submission=[Actual Submissions]-[Estimated Submissions]
Deviation Application=[Actual Applications]-[Estimated Applications]
Deviation Fundings=[Actual Fundings]-[Estimated Fundings]


3. Unpivot all of your columns except the [Column1].

w3.PNGw5.PNG

 

4.Create a Matrix visual to show your data.

 

w6.PNG

 

For more information, see attached pbix file. 

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-qiuyu-msft

 

I was trying something on the similar lines. Thanks for putting a lot of effort to get this resolved. I will accept this solution. 

 

Thanks,

Vijeth

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.