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.
First post on the forum, so forgive me if I am not following forum rules. I'm very new to Power BI DAX formulas, and creating a cumulative total measure is prooving very difficult. I've read several threads on this site and others, but so far I can't seem to make it work the way it should. Here is the RunningTotal measure formula I've written:
RunningTotal =
CALCULATE (
SUM ( 'Curve Comparison Files'[2017Q1] ),
FILTER (
ALLSELECTED ( 'Curve Comparison Files'[2017Q1] ),
min('Curve Comparison Files'[Normalized Days]) <= MAX ( 'Curve Comparison Files'[Normalized Days] )
)
)
This is just returning the same data that was entered in. I'm guessing it's summing all data within the same day, which is just the one single datapoint. Any suggestions?
Solved! Go to Solution.
Try this one please
RunningTotal = CALCULATE ( SUM ( 'Curve Comparison Files'[2017Q1] ), FILTER ( ALLSELECTED ( 'Curve Comparison Files' ), 'Curve Comparison Files'[Normalized Days] <= MAX ( 'Curve Comparison Files'[Normalized Days] ) ) )
Please Try this one
RunningTotal = CALCULATE ( SUM ( 'Curve Comparison Files'[2017Q1] ), FILTER ( ALLSELECTED ( 'Curve Comparison Files' ), 'Curve Comparison Files'[Normalized Days] ) <= MAX ( 'Curve Comparison Files'[Normalized Days] ) )
It's giving me an error message:
"A function 'FILTER' has been used in a True/False expression that is used as a table filter expression. This is not allowed."
Try this one please
RunningTotal = CALCULATE ( SUM ( 'Curve Comparison Files'[2017Q1] ), FILTER ( ALLSELECTED ( 'Curve Comparison Files' ), 'Curve Comparison Files'[Normalized Days] <= MAX ( 'Curve Comparison Files'[Normalized Days] ) ) )
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 |
---|---|
110 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |