Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hello all,
My Data table has
Item, WeekNumber, Year , sales data.
I want to see YOY growth by Week.
I tried creating a calendar using Dax . How should I map my calendar table with my data table.
I tried mapping WeekNumber to WeekNumber, It dint work as I need to map year as well i think,
I tried to create a new column in both tables with Week-Year (1-2020, "W,YYYY" - in text format) and created a connection. Even this dint work.
Can some one help me how to resolve this issue
Solved! Go to Solution.
@Anonymous
The same week is 364 days behind. Make sure you have date calendar in place
Week Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-364,Day))
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/
Appreciate your Kudos.
Hi @Anonymous ,
You cloud refer to this blog:https://www.sqlbi.com/articles/custom-year-over-year-calculation-in-dax/
If the problem persists,could you please share sample data and expected output?(Please mask any sensitive data before uploading)
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous
The same week is 364 days behind. Make sure you have date calendar in place
Week Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-364,Day))
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/
Appreciate your Kudos.
User | Count |
---|---|
125 | |
106 | |
99 | |
63 | |
62 |
User | Count |
---|---|
135 | |
116 | |
101 | |
71 | |
61 |