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 there,
I have a measure cauculating my running total for hours spent:
any idea?
thansk!
Solved! Go to Solution.
Hi, @Julio-YYC
You can try the following methods.
Measure:
Running =
CALCULATE ( SUM ( 'Table'[Actual hr] ),
FILTER ( ALL ( 'Table' ), [Week Date] <= SELECTEDVALUE ( 'Table'[Week Date] ) )
)
Result =
Var _maxtotal=MAXX(ALL('Table'),[Running])
Var _lastdate=CALCULATE(MIN('Table'[Week Date]),FILTER(ALL('Table'),[Running]=_maxtotal))
Return
IF(SELECTEDVALUE('Table'[Week Date])>_lastdate,BLANK(),[Running])
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Julio-YYC
You can try the following methods.
Measure:
Running =
CALCULATE ( SUM ( 'Table'[Actual hr] ),
FILTER ( ALL ( 'Table' ), [Week Date] <= SELECTEDVALUE ( 'Table'[Week Date] ) )
)
Result =
Var _maxtotal=MAXX(ALL('Table'),[Running])
Var _lastdate=CALCULATE(MIN('Table'[Week Date]),FILTER(ALL('Table'),[Running]=_maxtotal))
Return
IF(SELECTEDVALUE('Table'[Week Date])>_lastdate,BLANK(),[Running])
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
That worked perfect! Thanks v-zhangti !
That worked perfect! Thanks v-zhangti !
Hi Andre, when I use your measure, I lost the cummulative calculation...weird (look at the last column):
Hi,
Share the download link of the PBI file.
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 |
---|---|
113 | |
100 | |
78 | |
76 | |
52 |
User | Count |
---|---|
144 | |
109 | |
108 | |
88 | |
61 |