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.
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
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 |
---|---|
115 | |
100 | |
88 | |
68 | |
61 |
User | Count |
---|---|
152 | |
120 | |
102 | |
87 | |
68 |