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
MrMarshall
Helper II
Helper II

Simple IF Causing error

IF-statement in it's simplest form is causing issues.

"Profit" is of datatype "Whole number". 

 

What's wrong here? Running desktop version 2.58.5103.501.

 

Screenshot_70.png

1 ACCEPTED SOLUTION

The problem was a missing White-space after "1000". 
I have never had any problems with it before.. 

This works ;o

 

Screenshot_71.png

View solution in original post

5 REPLIES 5
TomMartens
Super User
Super User

Hey,

 

I'm not sure, but do you need to use ";" instead of "," as a separator of arguments?

 

Check your regional settings at the OS level.

 

Regards

Tom 



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany
Stachu
Community Champion
Community Champion

if this is calculated measure then 'Sales'[Profit] >1 is comparing a column (multiple values) with scalar, which won't work
this syntax should work fine for calculated column though



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

The problem was a missing White-space after "1000". 
I have never had any problems with it before.. 

This works ;o

 

Screenshot_71.png

you can have none or multiple whitespaces in the syntax, for sure that wasn't the reason for the measure not working



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

I agree it does look strange. 
But here I have two pictures taken a few seconds ago.

Must be some strange OS-culture bug.

 

Screenshot_74.pngScreenshot_73.png

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.