Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi,
I have Data in this format:
Date | Name | Sales |
01.01.2022 | A | 10 € |
02.01.2022 | A | 10 € |
02.01.2022 | B | 100 € |
03.01.2022 | A | 10 € |
03.01.2022 | B | 100 € |
04.01.2022 | A | 10 € |
04.01.2022 | B | 100 € |
04.01.2022 | C | 1000 € |
Now I want to build the running sales total per Name and the user should be able to select more than one names.
My current DAX formula is:
Solved! Go to Solution.
Hi,
Please check the below picture and the attached pbix file.
One of ways to achieve this is to use column in the measure, not the whole table.
Sales running total: =
CALCULATE (
[Sales:],
FILTER ( ALL ( 'Table'[Date] ), 'Table'[Date] <= MAX ( 'Table'[Date] ) )
)
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.
Don't use ALLEXCEPT, use ALLSELECTED
User | Count |
---|---|
139 | |
113 | |
103 | |
73 | |
63 |
User | Count |
---|---|
136 | |
125 | |
107 | |
70 | |
61 |