Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I want to compare sales over the past few years. I want to show daily sales based on week number. So a line that represents the current year; week 27, week 28(current), week 29. Another line representing the same weeks for 2018. As time passes and I refresh, the weeks change. But here is the tricky part, some holidays do not occur on the same date every year. So when a holiday is occuring, I need to show the corresponding past week. So 2019 line would show holiday -1(week27), holiday (week 28), holiday +1 (week29). And the 2018 line would adjust and show, holiday -1(week26), holiday (week 27), holiday +1 (week28). Or whatever week it occured. It must be matched properly. Also a regular week in 2019 might have been a holiday in 2018.
Thank you!
Solved! Go to Solution.
You need to import a holiday table from website(The table should contains date and day number in a week) and then build a relationship between the holiday table and original table. Then you can create a calculate column/measure to mark the workdays and other days. For more details, you can refer to similar case below:
https://community.powerbi.com/t5/Desktop/Public-Holiday-Script/td-p/178341
You can also refer to the third-party blog below:
https://www.andredevelopment.com/en-US/community/blogs/powerbi/working-days-holidays-calendar/
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You need to import a holiday table from website(The table should contains date and day number in a week) and then build a relationship between the holiday table and original table. Then you can create a calculate column/measure to mark the workdays and other days. For more details, you can refer to similar case below:
https://community.powerbi.com/t5/Desktop/Public-Holiday-Script/td-p/178341
You can also refer to the third-party blog below:
https://www.andredevelopment.com/en-US/community/blogs/powerbi/working-days-holidays-calendar/
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
96 | |
85 | |
77 | |
66 | |
63 |
User | Count |
---|---|
110 | |
96 | |
96 | |
67 | |
59 |