Forum Discussion
Circular Dependency Issue
- 2 years ago
ChatGPT just provided me with a working solution. My final DAX looks like:
EP Aud 1100 Categories =VAR __VALEP = [East Paris]VAR __EP_Aud_Cap = CALCULATE([EP Aud Cap], REMOVEFILTERS(Aud1100))RETURNSWITCH (TRUE (),__VALEP <= (.4*__EP_Aud_Cap), "Low",__VALEP <= (.6*__EP_Aud_Cap), "Moderate",__VALEP <= (.8*__EP_Aud_Cap), "Ideal",__VALEP <= __EP_Aud_Cap, "High",__VALEP >= __EP_Aud_Cap, "Over Capacity",BLANK ())
Thank you for your response, but this is not it. The DAX above works fine. My problems is that I am adding Calculated Columns, and my understanding is that once you add one calculated column, any other calculated columns become dependent on that first one. I have seen solutions using EXCEPTALL and REMOVEFILTERS, but I haven't seen how to use those functions in conjunction with the SWITCH function, which I am using above (every example I have seen is using CALCULATE). Anyway, I would like to basically copy and paste that DAX, change the references to point to different columns and measures, but add them all in the same table.
Hi DanErickson ,
I think there is some misunderstanding on your part. It does depend on the first computed column, but it doesn't have a circular dependency if it doesn't affect the first computed column. You can try to use the existing expression directly, and if you have problems, please provide sample data as well as expected results.
Hope it helps!
Best regards,
Community Support Team_ Scott Chang
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.