Forum Discussion

HungryPowerBIer's avatar
HungryPowerBIer
Frequent Visitor
7 years ago
Solved

Minimum across 2 columns

Hello everyone! I'm in a bit of a quandry and I'm not sure where to start. I need to compare two columns of data, taking the lowest from one column and ignoring the rest. Sample data:    Column ...
  • v-yulgu-msft's avatar
    7 years ago

    Hi HungryPowerBIer,

     

    Create below calculated column:

    Column3 =
    IF (
        Table1[Column 2]
            = CALCULATE ( MIN ( Table1[Column 2] ), ALLEXCEPT ( Table1, Table1[Column 1] ) ),
        Table1[Column 2],
        BLANK ()
    )

    Best regards,

    Yuliana Gu