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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
mroi
New Member

how to filter by total sum and not row sum

hello,

I would like to display a table filtered by the total amount of purchases by supplier (purchases per supplier > 140 thousand)

The columns indicate different offices so that you can see the amount of purchases in each office with a summary column.

When I add the invoice number to the rows of the table (below the vendor number +), the filter refers to the invoice amount and not the total amount by vendor.

How can I create a measure that shows the total amount by supplier regardless of the invoice detail, and perform the filtering according to that measure?

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your data model looks like, but please try something like below and check whether it suits your requirement.

 

expected result measure: =
CALCULATE (
    SUM ( 'TableName'[InvoiceAmount] ),
    ALL ( 'TableName'[InvoiceDetail] )
)

Or,

 

expected result measure: =
CALCULATE (
    SUM ( 'TableName'[InvoiceAmount] ),
    ALLEXCEPT ( 'TableName', 'TableName'[VendorNumber] )
)

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

2 REPLIES 2
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your data model looks like, but please try something like below and check whether it suits your requirement.

 

expected result measure: =
CALCULATE (
    SUM ( 'TableName'[InvoiceAmount] ),
    ALL ( 'TableName'[InvoiceDetail] )
)

Or,

 

expected result measure: =
CALCULATE (
    SUM ( 'TableName'[InvoiceAmount] ),
    ALLEXCEPT ( 'TableName', 'TableName'[VendorNumber] )
)

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Thank you for the quick response and for the simple and elegant solution.

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