Forum Discussion
rpinxt
Solution Sage
4 years agoWhy do I get Circular Dependancy
Making calculated columns my first one is this : IF('AVN Rework Merge'[Flow] = "Reworked" && [Amt USD] > -50,[Quantity],0) It works fine and gives me the quantity that I expected. Now I want...
- 4 years ago
rpinxt I agree with m_alireza. Also, any specific reason why you went with Calculated Columns instead measures?
I rewrote the logic as a measure for you. Check if this meets your requirementReworked Qty <50__ = VAR Result = CALCULATE( [Quantity], FILTER('AVN Rework Merge', 'AVN Rework Merge'[Flow] = "Reworked" && [Amt USD] > -50) ) RETURN COALESCE(Result,0)
SivaMani
Resident Rockstar
4 years agorpinxt, You're welcome!
COALESCE - If the first expression is BLANK, it returns zero. It is nothing but IF(ISBLANK(Result),0, Result )
Calculated Columns vs Measures -Both have their own use cases.
Refer the below URLs for more info - https://community.powerbi.com/t5/Desktop/column-vs-measure/m-p/13203/highlight/true#M3305
rpinxt
Solution Sage
4 years agoThanks!