Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

CALCULATETABLE Function error

I am using the following expression to poulate a measure:-

 

TestMeasure = 
CALCULATETABLE(
'Table',
'Table'Field <> BLANK()
) 

 

Which is returniong the following error: -

 

    The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value.

 

Isn't the whole point of CALCULATETABLE that it returns a table rather than a scalar value? Im very confused by this, any assistance would be greatly appreciated.

 

Im hoping to create the table so that I can then select the max value from a column within it. 

 

Is there another way I can approach this? 

 

Thanks

  • Anonymous's avatar
    Anonymous
    8 years ago

    CALCULATETABLE returns a table but then you are passing this whole table into a measure, which expects a scalar value. How about using MAX('table'[column])? 

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    CALCULATETABLE returns a table but then you are passing this whole table into a measure, which expects a scalar value. How about using MAX('table'[column])?