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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
nleuck_101
Resolver III
Resolver III

% Change number not calculated correctly, maybe rounding?

Hello All,

 

I could use some help with calculating Month over Month % change. Below are my formulas I'm using and results I'm getting. Any help would be greatly appreciated!

 

Measure 1 (1st column total) = SUM(Table[Column])
Measure 2 (2nd column total) = CALCULATE(Measure 1, PREVIOUSMONTH(DateTable[date_field]))

Measure 3 (3rd column total) = DIVIDE(Measure 1 - Measure 2, Measure 2, 0)

 

Example October 2022: (756-697) / 697 --> 59 / 697 --> 8.46% but in Power BI I get 8.32%

 

nleuck_101_0-1669130157287.png

 

1 ACCEPTED SOLUTION
HotChilli
Super User
Super User

Looks like you will have to ROUND the measures when you use them in measure3

View solution in original post

3 REPLIES 3
HotChilli
Super User
Super User

Looks like you will have to ROUND the measures when you use them in measure3

nleuck_101
Resolver III
Resolver III

@HotChilli 

 

Yes, it looks like a rounding issue. How can I get around this using whole numbers?

nleuck_101_0-1669137631113.png

 

HotChilli
Super User
Super User

8.32% is 58 (more or less) so yes, I suspect that the real figures are not 756 or 697 exactly.  There will be decimals in there which are not shown in the display but will be used in the measure formula.

That's my theory.  You can prove it by formatting the measures to show a few decimal places.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.