The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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 |
---|---|
15 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
24 | |
20 | |
12 | |
9 | |
7 |