Forum Discussion

KarlheinzLedere's avatar
KarlheinzLedere
New Member
5 years ago
Solved

Add column filled with sum from one column based on other column / Power BI

I have a data that looks like this:   I need a formula to add a column and fill a field in the same line, when “Tabelle1.Product” is filled (in Excel IF), it should cumulate “Revenue_Euro” wh...
  • Anonymous's avatar
    Anonymous
    5 years ago

    KarlheinzLedere 

     

    The description is a bit confusing but I guess I see your requirement. Try create the following measure:

    Measure = If(max([Tabelle1.Product])<>Blank(), Calcuate(sum([Revenue_Euro]), filter(allselected(table), [sales_acct_unit3]=Max([sales_acct_unit3]))))


    Paul Zheng _ Community Support Team
    If this post helps, please Accept it as the solution to help the other members find it more quickly.