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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Mudlogger
Regular Visitor

Percent change is not correct between 2 measures

Hi Guys,

 

I got a problem when I used DAX to calculate the Percent change between two measures.

I do not know why the result is not correct. The correct result should be as highlighted in green as per the picture.

 

42.png

 

This is my measure to calculate percent change :

 

% change from last Year =
IF (
ISBLANK ( [Sum Value year 2] ) || ISBLANK ( [Sum Value year 1] ),
BLANK (),
DIVIDE ( [Sum Value year 2] - [Sum Value year 1], [Sum Value year 1], BLANK () )
)

 

I would very much appreciate If you could help me with this.

 

Thank you in advance.

2 REPLIES 2
PowerUserR
Solution Supplier
Solution Supplier

Hi,

The only think I can think of is if the numbers have more decimals than are shown which becomes rounding errors for the calculation.
Other than that, I don't see any possible issues with the logic or calculation.

Hi ,
I have tried that way before but it does not work. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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