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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
torh
New Member

Measure madness

I have 2 measures to calculate Year over Year changes. One in percentage, the other in nominal value.

 

They look like this:

YoY FB% = ([FB] - [FBPreviousYear]) / [FBPreviousYear] 

YoY FB = ([FB] - [FBPreviousYear])

 

I created 2 scorecard to visualize these measures, but somehow I get a negative 'YOY FB%' but my YOY FB is positive.

 

How is this possible? There is no mathematical way one could be positive and the other negative.

 

Images here:

http://postimg.org/image/vzf7pd0bj/

http://postimg.org/image/dcrs3hcf9/

http://postimg.org/image/x9s03tfcr/

1 ACCEPTED SOLUTION

Thanks for the suggestions guys.

 

In the end I figured it by accident when trying to debug.

 

Basically the measure YoY FB% had a format of Percentage and was behaving as expected. 

The measure YoY FB, which is the nominal representation of YoY movement, was of format Currency. And NOT behaving as expected. For FB < FBPreviousYear, the YoY should be negative. But it was always showing as positive.

 

If I changed the format to anything else, like general, number etc., it would show as negative.

 

Not sure if this is documented somewhere, but maybe the currency format only show absolute values?

 

Thanks

Tor

 

 

 

 

View solution in original post

7 REPLIES 7
markvsql
Resolver I
Resolver I

One thing that may help with debugging is to create a measure for [FB] - [FBPreviousYear] and then reference THAT measure in your formauls above.

Thanks for the suggestions guys.

 

In the end I figured it by accident when trying to debug.

 

Basically the measure YoY FB% had a format of Percentage and was behaving as expected. 

The measure YoY FB, which is the nominal representation of YoY movement, was of format Currency. And NOT behaving as expected. For FB < FBPreviousYear, the YoY should be negative. But it was always showing as positive.

 

If I changed the format to anything else, like general, number etc., it would show as negative.

 

Not sure if this is documented somewhere, but maybe the currency format only show absolute values?

 

Thanks

Tor

 

 

 

 

WillT
Community Admin
Community Admin

That definitely sounds like a bug, Tor. I can't reproduce it but if you still see the problem, please Send a Frown from the Desktop we can track it down.
konstantinos
Memorable Member
Memorable Member

Try    YoY FB% = DIVIDE([FB] - [FBPreviousYear]) ;[FBPreviousYear] ) since probably the division is happening before substraction..

 

 

 

Konstantinos Ioannou

Sorry, provided same results as the existing formula. 

itchyeyeballs
Impactful Individual
Impactful Individual

It is mathematically possible if the value for [FBPreviousYear]  is negative

 

positve - negative = positive

positive / negative = negative

If you want to abstract the sign of youre result you can use the matematical function ABS().

It's return the absolute value of the parameter.

 

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.