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
HDD009
Frequent Visitor

DAX comparison operations is not detecting values

I am facing the issue, that my power bi doesn't seem to detect numbers as values, even if the data type of all columns is a number.

So if I want to compare a column to an value with an comparison operator, than it is not working.

 

I hope someone can help me with this.

 

 

operators.JPG

 

3 REPLIES 3
v-lili6-msft
Community Support
Community Support

hi, @HDD009 

If you could try these two formula to create a calculate column

 

If-Range = IF(Numbers[Number]<0,"Negative","Positive")

or

If-Range2 = IF(Numbers[Number]<0;"Negative";"Positive")

 

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@amitchandak yes it is a column

 

@v-lili6-msft both are not working, seems like my settings are differeny whyever. It doesn't detect the value.

 

I have to add "VALUE(0)" 

If-Range = IF(Numbers[Number]<VALUE(0),"Negative","Positive")

 

How can I change that setting????

amitchandak
Super User
Super User

Hope you are creating new Column, not New Measure. 

Also check the table name.

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.