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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
SemG
Advocate I
Advocate I

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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