Forum Discussion

CJ_96601's avatar
CJ_96601
Icon for Helper V rankHelper V
5 years ago
Solved

Cap to a resutl

Good morning,    Help needed.   How to write in dax below statement.   If the result of a measure is more than 100%, then 100%,else the result of the measure.   Regards,     
  • parry2k's avatar
    5 years ago

    CJ_96601 try this:

     

    New Measure = 
    IF ( [Your Measure] > 1, 1, [Your Measure] )

     

    Assuming your measure is a percentage, and change the format of this new measure to percent as well.

     

    Check my latest blog post Compare Budgeted Scenarios vs. Actuals I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

    ⚡Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡