Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago

This expression refers to Column object named 'Delivery Updates[Schedule logic]' which has an error

Hi Experts,

I am receiving the subjected error message when i am trying to create a custom column for below condition:

"FY Forecast > 500K". you have to sum all rows for the account, if the sum is >500K then it is key account

ex; (Albertsons RPA record has 300K, Albertsons GenAI/AI has 100K and no other Albertsons records, then it is not key account.  Albertsons RPA record has 300K, Albertsons GenAI/AI has 200K then it is key account) . RPA and GenAI is a offertype , if we have same account names but different offertype then we have to sum FY forecast for those same account and mark it as YES or NO.

 

DAX i created below got an error based on the previous DAX error :

I don't know why it is getting this error message .

Please help to solve this ..

 

Thanks

DK

 

6 Replies

  • I think it is because you used CALCULATE inside a calculated column, so the previous column in error gets inside your new filter context.
    You have to fix Schedule Logic formula.
    Or exclude this column from the formula for key account role 2 like adding removefilter('table'[schedule logic])
    to your calculate

     

    If you want to read something about context transition https://www.sqlbi.com/articles/understanding-context-transition-in-dax/

     

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      lbendlin 

      Gabry 

      I have removed Schedule logic DAX now as it is not required now.

      Post that i can see the below error :

       

      "ANZ banking group" is a account name column.

      • lbendlin's avatar
        lbendlin
        Icon for Super User rankSuper User

        Filters need to be tables or True/False.  You tried to specify a column as a filter.

  • You first need to correct the [Schedule Logic]  column.