Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
124 | |
79 | |
49 | |
38 | |
37 |
User | Count |
---|---|
196 | |
80 | |
70 | |
51 | |
42 |