March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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.
Solved! Go to Solution.
Hi @Trolleri ,
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]))
2. Then create one to many relationship between them.
3. At last create a table visual like this,
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.
Hi @Trolleri ,
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]))
2. Then create one to many relationship between them.
3. At last create a table visual like this,
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.
@Trolleri , 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])
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
114 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
165 | |
116 | |
63 | |
57 | |
50 |