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
jdun
New Member

Adding Absolute Value

Hi PBI Community,

    I am trying to come up with a function, expression, or method to display the total of the absolute value column in the below matrix. Var S - F is the variance between forecast and sales, which is sometimes negative. Var % S-F/F is the percent variance between forecast and sales. I didn't have any trouble getting absolute value to work for the individual items in the Absolute Value Variance and Absolute Value Variance % columns, but I want something that will add up the absolute value variance instead of just giving me a positive of the sales variance. The combined absolute value variance of the below three items should be 43,424, not 12,496. Currently, the overall is still just taking the sales variance and making it positive instead of doing 27,960 + 3,244 + 12,220. Similarly, the Absolute Value Variance % should be 17%, not 5%.

Ideally, I would like to display this value in the matrix, but separate scorecards for the absolute value variance and the absolute value variance percentage would work too.

 

jdun_0-1661520014384.png

 

1 ACCEPTED SOLUTION
DataInsights
Super User
Super User

@jdun,

 

You can try a totals measure like this:

 

Ab Val Var Totals =
SUMX ( VALUES ( Items[Item] ), [Ab Val Var] )

 





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

Proud to be a Super User!




View solution in original post

1 REPLY 1
DataInsights
Super User
Super User

@jdun,

 

You can try a totals measure like this:

 

Ab Val Var Totals =
SUMX ( VALUES ( Items[Item] ), [Ab Val Var] )

 





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

Proud to be a Super User!




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.