Forum Discussion

Veigar's avatar
Veigar
Frequent Visitor
5 years ago
Solved

Table as a variable doesn't work

Hi everyone, I have created a table variable: Measure_ = Var _table = SUMMARIZE( CALCULATETABLE( STOCK, FILTER(STOCK, RELATED(_Outliers[Outlier cost]) <> "Outlier"), ...
  • selimovd's avatar
    selimovd
    5 years ago

    Hey Veigar ,

     

    you can filter a calculated table. I don't see why this should not be possible.

     

    The measures you posted in the initial post cannot work. You put variables (VAR) but there is no RETURN. That just doesn't work. Check out the syntax:

    RETURN – DAX Guide

     

    But as far as I understand that measure is not working at the moment, right?

    I realized you want to do some ABC analysis. Check the article on dax patterns, maybe that will help you:

    ABC classification – DAX Patterns

     

    Best regards

    Denis