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
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
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.