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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi,
I download Sales data every week. This data shows downloaded week's month to all future months of the year. To see the historic MONTHLY data I need to go back to previous MAX Week downloads of relevant months.
Example:
1) Download of Week 31(July's week), will have Sales Forecast data for JULY to DECEMBER 2020.
2) To see the historical data from JAN to JUN, I have to find the MAX WEEK download of each previous month and then put them together to complete my yearly Sales Forecast.
I want a user to select any particular week and it should show Historic Months (point 2 above) and Future Months (point 1 above) in a chart.
Is it possible to create a measure like this please?
Thanks
Solved! Go to Solution.
I have managed to solve this. Thanks for your help.
I have managed to solve this. Thanks for your help.
"I download Sales data every week"
Are you keeping these snapshots or are you doing a flush and fill every week?
I keep snapshots. All merged into one Sales Forecast data.
Thanks.
and when you merge them do you also keep the snapshot date column intact?
Yes. Column WEEK NUMBER is saved in the table.
what's preventing you from using that in your measures?
My experience with dax - I am new.
I don't know how to do this syntactically.
Prepare for a bit of a roller coaster ride.
For the beginning, look at the use of CALCULATE() and learn how its second and further parameters modify the filter context.
Below is some pseudo code.
Measure =
var md = calculate (max(snapshot date),all(sales history))
return calculate (something something),snapshot date=md)
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 64 | |
| 51 | |
| 46 | |
| 23 | |
| 19 |
| User | Count |
|---|---|
| 139 | |
| 112 | |
| 51 | |
| 33 | |
| 29 |