Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
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)
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 |
|---|---|
| 65 | |
| 65 | |
| 45 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 115 | |
| 114 | |
| 38 | |
| 36 | |
| 26 |