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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.