Forum Discussion

rjg2g11's avatar
rjg2g11
Advocate I
8 years ago
Solved

Minimum Value across multiple columns

  Hello,   I am trying to create a column that picks out the minimum value from a number of columns.    I have posted a table below with my desired outcome   Can someone advise?   Many Thank...
  • Zubair_Muhammad's avatar
    Zubair_Muhammad
    8 years ago

    rjg2g11

     

     

    After unpivoting your Letter Columns, you can use following MEASURE to get the desired Output

     

    DesiredResult =
    VAR MinValue =
        CALCULATE ( MIN ( TableName[Value] ), TableName[Value] <> 0 )
    RETURN
        CONCATENATEX (
            FILTER ( TableName, TableName[Value] = MinValue ),
            TableName[Attribute],
            ", "
        )