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
I think there is a solve somewhere I am not thinking, but here is what I am trying to accomplish using the ALLSELECTED dax to summarize total sales -->
Customer | Product | Sales | Total Sales |
Drug Store | Candy Bars | 100 | 400 |
Grocery Store | Candy Bars | 100 | 400 |
Mass Merch | Gum | 100 | 400 |
C-Store | Cookies | 100 | 400 |
Here is what I want, alway summarized dynamically by product -->
Customer | Product | Sales | Total Sales |
Drug Store | Candy Bars | 100 | 200 |
Grocery Store | Candy Bars | 100 | 200 |
Mass Merch | Gum | 100 | 100 |
C-Store | Cookies | 100 | 100 |
I need it to be dynamic since other filters will routinely by applied (year, class of trade) but for that total sales column I need always at the parent product level. Is it possible withinnthe dax formula or do I need a new table?
Solved! Go to Solution.
Hi @nj-matt ,
Try this:
Measuree =
CALCULATE (
SUM ( CustomerProductSales[Sales] ),
FILTER (
ALLSELECTED ( CustomerProductSales ),
CustomerProductSales[Product] = SELECTEDVALUE ( CustomerProductSales[Product] )
)
)
It helped? Mark it as an accepted solution.
Regards,
Loran
Hi @nj-matt ,
Try this:
Measuree =
CALCULATE (
SUM ( CustomerProductSales[Sales] ),
FILTER (
ALLSELECTED ( CustomerProductSales ),
CustomerProductSales[Product] = SELECTEDVALUE ( CustomerProductSales[Product] )
)
)
It helped? Mark it as an accepted solution.
Regards,
Loran
i want to filter the summarized table when i filter table2{2} by sliceer i.e. by choosing sent or received in the slicer i want my table to be filtered and updated below is the ocde
Hi can somebody please help
I'm sorry for the spelling mistakes
Success! Thanks so much, I knew it had to be something simple
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
89 | |
84 | |
70 | |
51 |
User | Count |
---|---|
206 | |
146 | |
97 | |
79 | |
69 |