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 August 31st. Request your voucher.

Reply
utsavlexmark
Helper III
Helper III

Calculated Column not Working in a Certain Condition

AWS Flag = IF(SUMX('Table Name',[Measure]+[Measure 1]+[Measure 2]+[Measure 3]+'Table Name'[Column Name])/4>0,"Y","N")
 
This is the calculated column that is creating problem. as per condition if the result of the calculation is greater than "0" it will show "Y" and if the result is either "0" or les than 0 then it will be "N".
The problem is the 2nd condition is not working if all 4 Measures and the column are having "0" value.
 
Can anyone suggest what to do in such condition?
 
I am not sure what more information required for a solution - please let me know if anyone need any more info to suggest.
Regards
Utsav
 
1 ACCEPTED SOLUTION
v-xicai
Community Support
Community Support

Hi @utsavlexmark ,

 

You can try to create column like DAX below.

 

AWS Flag =
Var d=AND(ISBLANK([Measure]),ISBLANK([Measure1]),ISBLANK([Measure2]),ISBLANK([Measure3]),ISBLANK('Table Name'[Column Name]))
Return
IF(d=TRUE(), "N", IF(SUMX('Table Name',[Measure]+[Measure 1]+[Measure 2]+[Measure 3]+'Table Name'[Column Name])/4>0,"Y","N"))

Best Regards,

Amy

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-xicai
Community Support
Community Support

Hi @utsavlexmark ,

 

You can try to create column like DAX below.

 

AWS Flag =
Var d=AND(ISBLANK([Measure]),ISBLANK([Measure1]),ISBLANK([Measure2]),ISBLANK([Measure3]),ISBLANK('Table Name'[Column Name]))
Return
IF(d=TRUE(), "N", IF(SUMX('Table Name',[Measure]+[Measure 1]+[Measure 2]+[Measure 3]+'Table Name'[Column Name])/4>0,"Y","N"))

Best Regards,

Amy

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.