Forum Discussion

Clint's avatar
Clint
Helper V
6 years ago
Solved

Question about error in Measure: Expression refers to multiple columns

Hello,   Not sure why this measure returns the error "The expression refers to multiple columns.  multiple colulmns cannot be converted to a scalar value.    Task Percent Completed for Customer ...
  • v-frfei-msft's avatar
    6 years ago

    Hi Clint ,

     

    As we know, we cannot create dynamic calculated table/ column. Here we can use table visual and a measure to work around.

    Measure = var a = MAX('Table'[Task Name])
    return
    IF(a  in  { "Customer Program" },"yes",BLANK())

     

  • Clint's avatar
    Clint
    6 years ago

    Thank you.  What ended up work is:

    M_Program Progress =

    DIVIDE(
    Value(
    MAXX(
    CALCULATETABLE('Tasks',
    'Tasks'[Task Name]="Customer Program"),
    'Tasks'[Task Percent Completed])),100)