This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi all!
I know this is a largely discussed topic, but I haven't been able to find a fix that works for me.
I'm trying to create a measure that calculates the amount of Impressions for the Same Week Last Year. I've treid many functions, but
I've never been able sort out the 1 day offset issue:
Last Calendar Week (or Week #2 2019) is Jan 6 – Jan 12, 2019
Same Calendar Week Last Year (or Week #2 2018) was Jan 7 – Jan 13 2018
What I would like to achieve now is this:
Ideally, the Last Year Week measure should calculate the following:
Can someone help me out in writing the DAX function for the above? Or provide other solutions?
Thanks!
Solved! Go to Solution.
@Anonymous
Have you tried:
DATEADD ( DATEADD ( 'Date'[Date]; -1; YEAR ); 1; DAY )
That should give you the dates you're looking for if the filter context is the week in 2019
Can you please provide the complete code, if possible. Am also facing same probklem.
@Anonymous
Have you tried:
DATEADD ( DATEADD ( 'Date'[Date]; -1; YEAR ); 1; DAY )
That should give you the dates you're looking for if the filter context is the week in 2019
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 31 | |
| 25 | |
| 21 | |
| 18 | |
| 17 |
| User | Count |
|---|---|
| 62 | |
| 34 | |
| 33 | |
| 25 | |
| 24 |