Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Success! Thanks so much, I knew it had to be something simple
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
97 | |
80 | |
67 | |
63 |
User | Count |
---|---|
147 | |
110 | |
108 | |
85 | |
64 |