Forum Discussion

yhael1121's avatar
yhael1121
Frequent Visitor
8 years ago
Solved

scalar value

Hi Team,    Im a new user. i was working on adding a calculated column on a table but i kept on getting this error: The expression refers to multiple columns. Multiple columns cannot be converted t...
  • Greg_Deckler's avatar
    8 years ago

    Right, so you are adding the column to the table but then returning the entire table back. You can't do that in a calculated column or a measure. This would be a valid formula for a calculated table however.

     

    Seems like you could create a new calculated column and give it this formula:

     

    72Hrs = AVERAGEX(RELATEDTABLE(Compressed),[72HR])

    I'm making some assumptions here. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490