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

Power bi - i added a dax for a column but its not working

Power bi - i added a dax for a column as Column_test = IF(test[Variance]>=0 , "No-deviation" ,"Deviation") - it seems the else part is not working

2 REPLIES 2
v-yiruan-msft
Community Support
Community Support

Hi @RUPSY777,

I just created the calculated column as you refer in case, and it works well. Does the value of test[Variance] come from the subtraction of the another 2 field values? If yes, could you please provide the data type of this 2 fields? And is there any empty value in this 2 fields? It is better if you can share some sample data except sensitive data.

sample.JPG

 

Best Regards

Rena

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

Seems fine. Can you share some sample data it is not working?

In between try 0.0, just to make sure numeric on both sides.

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.