Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
Hello,
this is a massively beginner question bu I wasn't able to find a solution yet. I need to create a column, where I would have the total revenue for every customer. So it would repeat per customer. In excel it would be a simple SUMIF(Revenue, Customer=Customer in the given line).
However as a total beginner, I'm unable to recreate this as a column in Power BI.
Any help is appreciated.
Solved! Go to Solution.
You can create Calculated column or measure using below DAX code:
Category Revenue = CALCULATE(SUM(CustTable[Revenue]),ALLEXCEPT('CustTable','CustTable'[Customer]))
Calculated Column will give following output:
Measure will give following output:
Please mark my solution as Accepted if it helped you.
You can create Calculated column or measure using below DAX code:
Category Revenue = CALCULATE(SUM(CustTable[Revenue]),ALLEXCEPT('CustTable','CustTable'[Customer]))
Calculated Column will give following output:
Measure will give following output:
Please mark my solution as Accepted if it helped you.
Thank you
You're welcome
User | Count |
---|---|
83 | |
69 | |
68 | |
57 | |
50 |
User | Count |
---|---|
42 | |
41 | |
33 | |
32 | |
31 |