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
I have weekly data for each product. I want to find out the change between any two weeks of given product given I have a timestamp column specifying all relevant date/time info. How do I do this?
Thank you in advance.
Hi @afaro
Based on your description, you can consider to use datesinperiod() function.
e.g
Measure =
CALCULATE (
[Measure],
DATESINPERIOD ( calendar[date], MAX ( 'Date'[Date] ), -14, DAY )
)
You can refer to the link about the function.
DATESINPERIOD function (DAX) - DAX | Microsoft Learn
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi! Assuming you have a robust Date dim table, you can utilize the following links to do your week basewd time intelligence.
Week-Based Time Intelligence in DAX - SQLBI
Week-related calculations – DAX Patterns
Proud to be a Super User! | |
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 69 | |
| 47 | |
| 44 | |
| 28 | |
| 19 |
| User | Count |
|---|---|
| 200 | |
| 125 | |
| 102 | |
| 69 | |
| 53 |