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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Budfudder
Helper IV
Helper IV

Summing a Measure

I have two tables, Invoices and Products. Each Invoice can have any number (1-n) products. Each product has a tag 'Renewal' or 'New', representing the kind of business they are.

 

I use a third table to allow the user to choose which to see - Renewals or New. Taking into account the value they've chosen, I create a string containing only the applicable products for each invoice, and display the invoices and their corresponding products in a table.

 

I have a measure that is assigned a value based on a complex filter, which takes into account which of two settings the user has selected as well as the created string, and comes up with a cost for the invoice, including only those products applicable given the user's choice (Renewals or New). I then display this cost on the same row as the invoice. So if the user changes his selection, for each row in the table, the products shown and the cost will both change, including only those products that match the selection.

 

But I need to be able to show a total value of all of the values shown. How do I sum the measure? If I drag it to the visual, it just shows me one of the figures that are in a row. 

3 REPLIES 3
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Budfudder,

 

Please have a look at this article:

Dealing with Measure Totals

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Zubair_Muhammad
Community Champion
Community Champion

Hi @Budfudder

 

Try this pattern

 

SumofMeasure =
SUMX (
    ALLSELECTED ( TableName[Column_For_Which_Measure_Needs_TO_B_AGRREGATED] ),
    [Measure]
)

Unfortunately that didn't work. The result is the same as the cost for each particular row - it's not totalling. 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors