Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello everyone, I created a measure for last year sales and plan to do the same for 2 years back. I created the following measure:
Here are my relationships. As you can see, store #s are connected to a master store list, and dates are connected to a date table
Thank you in advance!
Solved! Go to Solution.
Hi,
Since you have a date table, you should use the date of your date table and not the one from the fact table.
One more thing do not forget to mark your date table as a date table, and to link (seems done on your screencopy).
But the stange thing is that you might have forgotten something, because if your date is related to your date table or coming from the date table, you should not see the date hierarchy (Date.Year or Date.Month...).
So that's why I'm guessing your table is not marked or linked properly 😉
Let us know
Sorry, Yes I selected the Date column from the Coupon table, but even when I select the date from the date table, the values for LY = current sales
Here are the relationships
WOW thank you, I feel dumb.
No worries it happens to all of us...
and dumbness is well shared amongst all of us, with an equal distribution 😉
User | Count |
---|---|
14 | |
9 | |
7 | |
7 | |
6 |
User | Count |
---|---|
21 | |
11 | |
10 | |
10 | |
8 |