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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
paguy215
Helper III
Helper III

Variance Between Columns help

I've gone through a few forums and can't find any solution that works.   Basically I have a matrix and I'm trying to show the difference between two columns...in this case the Delta column in relation to 2021 vs 2022

 

 20222021Delta
Sales$2,000$2,500$500
Units7510025
Average$26.67$25.00($2)

 

Everything I've tried has not worked.   Sales and Units are two different measures (columns in the table) while Average is just a calculated measure.   I would love to be able to find a way to make this work with multiple measures in one view.  In addition, I would love to have it be dynamic based on a date selection slicer (IE a MTD or a custom date range).  

 

Any help is very much appreciated..thanks!

1 REPLY 1
Wilson_
Super User
Super User

Hello paguy215,

 

Power BI is not Excel.

 

I believe you're making what is a very understandable mistake. A table/matrix looks like a spreadsheet. However, you cannot essentially reference individual cells of a table/matrix. (To further drive home this point, the subtotals and totals in a matrix are also not a summing up of the cells above or to the right!)

 

What you can do is write, in this example, a measure for sales in 2022, a measure for sales in 2021 and a measure for the variance between those two measures.


----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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