Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Using an IF function to show less than a certain %

Hello, I currently have a logic measure that determines if a certain level of water flow is less than the expected level of water flow. The measure is as follows:

Red Flag =
IF ( Water[Pumpage] < Water[ExpectedPumpage], "Below Limit", "" )

I would like the measure to only return this "Below Limit" in the column if the 'Pumpage' is 25% below "Expected Pumpage", not just any amount. Thanks.
  • Hi Anonymous ,

     

    Try the following formula:

     

    Red Flag = 
    IF ( 
        SUM(Water[Pumpage]) < SUM(Water[ExpectedPumpage]) * 0.25, 
        "Below Limit" 
    )

     

     

    If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

    Best Regards,
    Winniz

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

1 Reply

  • v-kkf-msft's avatar
    v-kkf-msft
    Community Support

    Hi Anonymous ,

     

    Try the following formula:

     

    Red Flag = 
    IF ( 
        SUM(Water[Pumpage]) < SUM(Water[ExpectedPumpage]) * 0.25, 
        "Below Limit" 
    )

     

     

    If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

    Best Regards,
    Winniz

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.