Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello, I would like the sum of hours for a month with previous months.
my table looks like this
I would like to get something like this
Sum H and previous H =
CALCULATE(
Sum(Table[h],
FILTER(All(Table[Date]), Table[Date] <= MAX(Table[Date])
)
I tried this solution but it doesn't work
Solved! Go to Solution.
_hours = CALCULATE(SUM('Table'[h]),ALLEXCEPT('Table','Table'[Month]))
Comm_Hours = CALCULATE(SUM('Table'[h]),FILTER(ALL('Table'[Month]),'Table'[Month]<=MAX('Table'[Month])))
_hours = CALCULATE(SUM('Table'[h]),ALLEXCEPT('Table','Table'[Month]))
Comm_Hours = CALCULATE(SUM('Table'[h]),FILTER(ALL('Table'[Month]),'Table'[Month]<=MAX('Table'[Month])))
Thank you very much, everything works beautifully
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |