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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
DAVID_DART
New Member

SUM of measure with filter

Hello

 

I would like to manage the sum of the measure (being the result of the line) depending on the customer

 

CUSTOMERLINEMEASURE
A110
A220
B115
B230

 

thanks for your help

6 REPLIES 6
smpa01
Super User
Super User

Improve your question, if you want faster solution. Start here 

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs
ArchanaMukherji
Regular Visitor

Use Calculated DAX function CustomersA= Calculate(SUM(Measure)), Customers="A")

I have hundreds of customers, the filter shall be variable

hi @DAVID_DART 

how is your measure defined?

hi @FreemanZ 

 

thanks for following up

my table looks in real as follows 

DAVID_DART_2-1677742051545.png

 

the measure is

Moyenne de Prod annuelle par LIGNE =
AVERAGEX(
    KEEPFILTERS(VALUES('Parc Machines'[LIGNE])),
    CALCULATE(AVERAGE('Parc Machines'[Prod annuelle]))
)

 

I need to have a measure which is the subtotal per customer.

 

does that make sense?

 

DAVID_DART
New Member

I specify more... I want to generate a new measure to have a table as follows

 

CUSTOMERSUM OF MEASURE
A30
B45

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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