Forum Discussion

JaclynPugh2022's avatar
3 years ago
Solved

Conditional Measure

Hi,   I have a calculated column 'PPO Open Conf and Rec'[Past or Future] that indicates Past or Future based on report name.  I am trying to create a conditional measure that calculates [STD PPV in...
  • Tutu_in_YYC's avatar
    3 years ago

    Use the DAX function IF. You can find the syntaxt and example here:
    https://dax.guide/if

    Measure=
    IF(
      SELECTEDVALUE('PPO Open Conf and Rec'[Past or Future]) = "Past",
      [STD PPV in ths],
      [PPV Forecast]
    )