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.
Input | Output | ||||
Date | No.of bookings | Date | No.of bookings | Bookings from month to date | |
1/1/2018 | 224 | 1/1/2018 | 224 | 224 | |
1/2/2018 | 456 | 1/2/2018 | 456 | 680 | |
1/3/2018 | 345 | 1/3/2018 | 345 | 1025 | |
1/4/2018 | 343 | 1/4/2018 | 343 | 1368 | |
1/5/2018 | 654 | 1/5/2018 | 654 | 2022 | |
1/6/2018 | 134 | 1/6/2018 | 134 | 2156 | |
1/7/2018 | 876 | 1/7/2018 | 876 | 3032 | |
1/8/2018 | 342 | 1/8/2018 | 342 | 3374 |
I want to calculate the sum of bookings for each date from the begining of the month in a new column. In the new column every row will have an aggregated value of bookings from the month start to that date.There will be data for a number of months in a number of years. please help with DAX query.
Solved! Go to Solution.
Can you try this ?
Bookings from month to date = CALCULATE ( SUM (YourTable[No.of bookings), ALL ( YourTabke), YourTable[Date] <= EARLIER (yourTable[Date]) )
- Quentin
Can you try this ?
Bookings from month to date = CALCULATE ( SUM (YourTable[No.of bookings), ALL ( YourTabke), YourTable[Date] <= EARLIER (yourTable[Date]) )
- Quentin
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 |
---|---|
114 | |
101 | |
78 | |
75 | |
49 |
User | Count |
---|---|
145 | |
108 | |
107 | |
89 | |
61 |