Forum Discussion

DemiHaung's avatar
DemiHaung
Frequent Visitor
4 years ago
Solved

DAX Measure Base on Column value

Hi All   I will appreciate your help as I'm trying to figure out my roadblock  in power bi, here is the scenario I'm trying to create a measure base on the value on the field, the table have alrea...
  • VijayP's avatar
    4 years ago

    DemiHaung 
    IF(Selectedvalue(Tablename[Product])= "A", your result , your other result

    you can't pick the column name directly in a measure so this is the approach! Share your Kudos

  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi DemiHaung, Try this

     

    Measure 4 =
    VAR SelectedProduct = SELECTEDVALUE(Table[Product])
    RETURN
    IF(
    SelectedProduct = "A", [Measure1]+[Measure2]+[Measure3],
    BLANK()
    )

     

    If found helpful mark as a solution or give Kudos for efforts. Thanks!