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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi there,
I have a set of data where I need to calculate value based on a set amount of days.
In the case of 4 weeks data, I've done this calc
Is there a DAX rule to look at last years numbers but 2 days ahead of same period last year? Do i need to create a custom table to arrange what is defined as 4/13/52 weeks?
Thanks!
Go with multiples of 7 days - 28/91/364 . Much easier, impervious to leap years, and more "like for like".
Hey there the challenge i face is that the data starts 2 days before . So for instance 20th May 2024 wont extract data from the 18th. The data is also on a weekly basis. If this is the case, surely the solution you mention wouldn't work?
As long as you have a calendar table in your data model and your fact table has a date associated with the week number this will still work.
User | Count |
---|---|
14 | |
10 | |
7 | |
6 | |
5 |
User | Count |
---|---|
30 | |
19 | |
12 | |
7 | |
5 |