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 September 15. Request your voucher.

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.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors