Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi,
I am trying to calculate a column where it adds the working days in a running form. On 15th March, total working days would be 2, and 3 on 16th March. I require a column, not a measure. I have tried various methods but they return total working days till the maximum date in the table, not till a date in the row.
How can it be solved?
Thanks alot
Solved! Go to Solution.
Please check this article:
https://community.powerbi.com/t5/Desktop/Cumulative-Total/td-p/43115
Cumulative working days =
CALCULATE (
SUM ( 'Table'[Is WorkingDay] ),
ALL ( 'Table' ),
'Table'[Date] <= EARLIER ( 'Table'[Date] )
)
Please check this article:
https://community.powerbi.com/t5/Desktop/Cumulative-Total/td-p/43115
Cumulative working days =
CALCULATE (
SUM ( 'Table'[Is WorkingDay] ),
ALL ( 'Table' ),
'Table'[Date] <= EARLIER ( 'Table'[Date] )
)
| User | Count |
|---|---|
| 57 | |
| 43 | |
| 32 | |
| 16 | |
| 13 |
| User | Count |
|---|---|
| 84 | |
| 70 | |
| 38 | |
| 27 | |
| 24 |