Forum Discussion

Debsidrian's avatar
Debsidrian
Frequent Visitor
2 years ago
Solved

HELP with DAX (Conditional Measure)!!!!

I want to create a column with a calculated value: If the Value in "sum of fines" is < average fines, return (Average fines - sum fines) if not return "sum of fines"   I am using this DAX:    C...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi Debsidrian ,

     

    I’d like to acknowledge the valuable input provided by the vicky_ . Their initial ideas were instrumental in guiding my approach. However, I noticed that further details were needed to fully understand the issue. 

     

    You can try this.

    ConditionalValue =
    IF(
        SUM(Record[fines])
        <[TotalAvg],
        [TotalAvg]-([fines average per dc_nbr]),
      SUM(Record[fines])) 

     

    More detailed information can be found in the pbix attachment.

     

    Best Regards,

    Clara Gong

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