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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
williamadams12
Resolver I
Resolver I

Calculating $ and % Variance in DAX

I'm struggling to get something really simple correct here. 

 

Current Matrix:

FinancialsActualsForecastVAR $VAR %
Revenue$9,375,398 $10,119,803($744,405)-7.4%
EBITDA($523,357) ($358,524)($164,833)46%

 

Desired Matrix:

FinancialsActualsForecastVAR $VAR %
Revenue$9,375,398 $10,119,803($744,405)-7.4%
EBITDA($523,357) ($358,524)($164,833)-46%

 

Actuals, Forecast, VAR $ and VAR % are all calculated measures; only the Revneue and EBITDA Row Headers are values from an imported table. I want the VAR % to be negative when comparing the variance of two negative figures; for example in the first table the VAR % vs the Forecast is -46%, since $164k is roughly 46% of $358k. 

 

VAR % Measure:

VAR % = DIVIDE([VAR $], [Forecast])

 

The measure, ideally, should calculate the variance for the row values of "Revenue" and "EBITDA" in the Financials. 

 

Any ideas? 

1 ACCEPTED SOLUTION

@williamadams12 
You are 100% correct. Please try

VAR % =
DIVIDE ( [VAR $], ABS ( [Forecast] ) )

View solution in original post

3 REPLIES 3
tamerj1
Super User
Super User

Hi @williamadams12 
Please use 

VAR % =
- ABS ( DIVIDE ( [VAR $], [Forecast] ) )

This doesn't work; it renders positive amounts negative when the $ variance is positive, which is incorrect. 

@williamadams12 
You are 100% correct. Please try

VAR % =
DIVIDE ( [VAR $], ABS ( [Forecast] ) )

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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