Forum Discussion

gauravnarchal's avatar
gauravnarchal
Icon for Post Prodigy rankPost Prodigy
5 years ago
Solved

Measure - IF Condition for Text

Hello - I need your help to create a measure to find the text in the table and return a value based on the condition.

 

Condition - If "Table Exchange" has a value True return a value “Discounted” else Blank (No Value)

 

Thanks

Gaurav

 

 

Exchange
FALSE
TRUE
FALSE
FALSE
FALSE
FALSE
TRUE
TRUE
TRUE
TRUE
FALSE
FALSE
FALSE
TRUE
  • gauravnarchal 

    For a measure:

    Measure 1 = IF( SELECTEDVALUE(Table[Offer is Selected]), "Discounted" )

    If you need a column then,

    Column 1 = IF( Table[Offer is Selected], "Discounted" )

2 Replies

  • smpa01's avatar
    smpa01
    Icon for Community Champion rankCommunity Champion
    Column = if('Table 1 (3)'[Exchange]=TRUE(),"Discounted",BLANK())

     

    • Fowmy's avatar
      Fowmy
      Icon for Super User rankSuper User

      gauravnarchal 

      For a measure:

      Measure 1 = IF( SELECTEDVALUE(Table[Offer is Selected]), "Discounted" )

      If you need a column then,

      Column 1 = IF( Table[Offer is Selected], "Discounted" )