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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Anonymous
Not applicable

Filter total sales for categories that has products f

Hello,

 

I am trying to make a measure that shows the total sales for all products in all categories that have products in it from a specific manufacturer. So lets say i have a manufacturer that have products in categories 1,2,4 then i would like to have a measure that shows the sum of the total sales for all products in those 3 categories.

 

1 ACCEPTED SOLUTION
v-zhenbw-msft
Community Support
Community Support

Hi @Anonymous ,

 

We can create a table and a both relationship to meet your requirement.

 

1. Create a summarize table.

 

Table 2 = SUMMARIZE('Table','Table'[categories],"Total",SUM('Table'[sales]))

 

filter1.jpg

 

2. Then create one to many relationship between them.

 

filter2.jpg

 

3. At last create a table visual like this,

 

filter3.jpg

 

If it doesn’t meet your requirement, could you please provide a mockup sample based on fake data?

It will be helpful if you can show us the exact expected result based on the tables.

 

Please upload your files to OneDrive For Business and share the link here. Please don't contain any Confidential Information or Real data in your reply.

 

Best regards,

 

Community Support Team _ zhenbw

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

BTW, pbix as attached.

View solution in original post

2 REPLIES 2
v-zhenbw-msft
Community Support
Community Support

Hi @Anonymous ,

 

We can create a table and a both relationship to meet your requirement.

 

1. Create a summarize table.

 

Table 2 = SUMMARIZE('Table','Table'[categories],"Total",SUM('Table'[sales]))

 

filter1.jpg

 

2. Then create one to many relationship between them.

 

filter2.jpg

 

3. At last create a table visual like this,

 

filter3.jpg

 

If it doesn’t meet your requirement, could you please provide a mockup sample based on fake data?

It will be helpful if you can show us the exact expected result based on the tables.

 

Please upload your files to OneDrive For Business and share the link here. Please don't contain any Confidential Information or Real data in your reply.

 

Best regards,

 

Community Support Team _ zhenbw

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

BTW, pbix as attached.

amitchandak
Super User
Super User

@Anonymous , Try a measure like

 

measure =
var _sel = countx(allselcted(product[category]),product[category])
return
sumx(filter(summarize(product,product[product], "_1" , distinctcount(product[category]) , "_1", sum(sales[sales])),[_1]=_sel),[_2])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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