Forum Discussion

gdecome's avatar
gdecome
Helper III
5 years ago
Solved

Getting values and filtering a virtual table

Hi all, I need to create a table inside the measure (not as another table) and get values from there. 

If I run as below, it works fine

 

 

I see the table is Ok

 

How to write an expression that works for specific columns? 

For example:

MAX(_index[Value2) ... that will return 3.1  ... or
FILTER(_index,[Value1] = 2 ... to select that specifc row

  • gdecome , You can try like

    MAXX(_index,_index[Value2]))

     

    MAXX(filter(_index,_index[Value2] =2),_index[Value3])

     

    You have use functions which take table name as one of the argument

     

3 Replies

  • gdecome , You can try like

    MAXX(_index,_index[Value2]))

     

    MAXX(filter(_index,_index[Value2] =2),_index[Value3])

     

    You have use functions which take table name as one of the argument

     

      • gdecome's avatar
        gdecome
        Helper III

        Hi amitchandak , I could solve the problem removing the table name before the column name.

        MAXX ( _index , [Value2] )
        Thank you for your help