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
Dear~
I have the following data, red is historical data, green is current data (calculated using PREVIOUSMONTH), how do I calculate 202301, 202302, 202303, 202304 after yellow?
I have the date dimension table, as in the date on the left.
Although I use PREVIOUSMONTH again, 202302 comes out with empty data...but not workd.
Thanks in advance
BR
Soldier
@soldier_rong , Next 6 month exculding current
next Rolling 6 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date],eomonth(MAX('Date'[Date]),0)+1,-6,MONTH))
next 6 months including the current
next Rolling 6 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date],eomonth(Min('Date'[Date]),-1)+1,-6,MONTH))
Hi @amitchandak ,
Cool, however, the data on 202212 should be taken from 202211 and I drafted a sample data as the below.
This is an iteration that relies on the previous month's data (it started out as 202212 relying on 202211)
Thanks again.
BR,
Soldier
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 39 | |
| 37 | |
| 29 | |
| 24 |
| User | Count |
|---|---|
| 119 | |
| 100 | |
| 72 | |
| 69 | |
| 65 |