Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
bundipapa
Frequent Visitor

Get SUM per customer

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).

bundipapa_0-1684231137096.png


However  as a total beginner, I'm unable to recreate this as a column in Power BI.

bundipapa_1-1684231239425.png

 

 

Any help is appreciated.

1 ACCEPTED SOLUTION
Dhairya
Super User
Super User

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:

Dhairya_0-1684232160651.png

Measure will give following output:

Dhairya_1-1684232288608.png


Please mark my solution as Accepted if it helped you.

 

 

View solution in original post

3 REPLIES 3
Dhairya
Super User
Super User

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:

Dhairya_0-1684232160651.png

Measure will give following output:

Dhairya_1-1684232288608.png


Please mark my solution as Accepted if it helped you.

 

 

Thank you

You're welcome

 

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

Check out the May 2025 Power BI update to learn about new features.

May 2025 Monthly Update

Fabric Community Update - May 2025

Find out what's new and trending in the Fabric community.