Forum Discussion

klehar's avatar
klehar
Helper V
5 years ago
Solved

conditional sum

Hi, I have a stripped down data for 1 opportunity below. Actual data has 100s of opportunities. I want to create 2 measures. Opportunity Business Product Line Opp Value Order Value Opp1 ...
  • parry2k's avatar
    5 years ago

    klehar add two measures:

     

    Business Value = SUMX ( SUMMARIZE ( Opp, Opp[Opportunity], Opp[Business], "@Value", MAX ( Opp[Order Value] ) ), [@Value] )
    
    Business Value = SUMX ( SUMMARIZE ( Opp, Opp[Opportunity], Opp[Business], "@Value", MAX ( Opp[Order Value] ) ), [@Value] )

     

    Follow us on LinkedIn

     

    Check my latest blog post Comparing Selected Client With Other Top N Clients | PeryTUS  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.