Forum Discussion
IF Function
- Anonymous8 years ago
I figured it out!!!! I had to make my expression a measurement and not a calculated column!!!! So embarassed thank you for your help~!
Hey,
this will resolve the error message
CALCULATE(
< your expression >
,ALLEXCEPT('yourtablename', 'yourtablename'[name of the calculated column 1])
)
Regards Tom
Ok SO update my expression to :
Unit Level = CALCULATE(IF(SUM([Avg Units])<9,"Blue",IF(SUM([Avg Units])>=18,"Gold","Silver")),ALLEXCEPT('Last Quarter','Last Quarter'[Avg Units]))
but still getting all gold results. This shouldn't be this hard. What am I missing?
- TomMartens8 years agoSuper User
Hey,
can you please provide sample of your table 'Last Quarter', also the column [Loan Number].
Are there more calculated columns besides Avg. Units in your table?
Please have look at this article: http://www.sqlbi.com/articles/understanding-circular-dependencies/
Regards
Tom
- Anonymous8 years agoNot applicable
I coppied a section of my table in the question. The loan number is just a unique identifier i use to get a count of units.
- TomMartens8 years agoSuper User
Hey,
unfortunately I can't fully reproduce your issue, based on your sample data, due to the missing column that you used for your "Calculated Column".
Did you check the other option and did you already checked the article.
Regards
Tom