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
PowerWhy
Helper IV
Helper IV

SIGN function behaviour changing when in an if function?

Hi All,

 

Please can someone suggest why these 2 measures may display different results? (I'm getting 1 for "Test Measure 1" and 0 for "Test Mesaure 2". I think both measures should output the same number (i.e. "sign([Net Production])" )

 

From sense checking the source data I think the result should be 0.

 

Test Measure 1 =
            calculate(if([Output] <> 0, sign([Net Production]), sign([Net Production])),
                ALL('Dim_Calendar'[Fiscal Period]),
                ALL('Dim_Calendar'[Fiscal Quarter])
            )
 
Test Measure 2 =
            calculate(sign([Net Production]),
                ALL('Dim_Calendar'[Fiscal Period]),
                ALL('Dim_Calendar'[Fiscal Quarter])
            )
 
Thank you for any help,
 
PW
1 REPLY 1
AlexisOlson
Super User
Super User

This does seem strange. Can you share a file that reproduces this issue?

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

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.

Top Kudoed Authors