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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors