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

If statements are evaluating wrongly

I have an IF statement in a calculated column of a calculated table that evaluates wrongly. See example below. How can this happen?

 

image.png

3 REPLIES 3
v-qiuyu-msft
Community Support
Community Support

Hi @SemG,

 

In your scenario, which aggregation do you set for the [Boete Totaal] in the visual? Assume it's SUM, then you need to create a measure like: 

 

Measure= IF(SUM([Boete Totaal]) =100, "100","200")

 

Best Regards,
Qiuyun Yu 

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

Hi Qiuyun Yu,

 

Thanks for answering. I am using calculated columns and I am adding multiple calculated columns with the + operator. I am not using aggregations.

 

Best regards,

SemG

 

Hi @SemG,

 

I mean you can check if you have set aggregation for [Boete Totaal] in the visual like below: 

 

q3.PNG 

 

If it's SUM, then please try to create a measure like mentioned in my previous post. If issue persists, please share the pbix file with us. 

 

Best Regards,
Qiuyun Yu 

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

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.