Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi Team,
Am using direct query mode because the dataset is huge and all transformations are done in databricks. there is one data timestamp column from that am extracting week of year in databricks and loading data to powerbi.
Till 2020 the week number is coming correctly but when it comes to dec 2021 52nd week the graph is showing incorrectly.I have attached images below for reference.
image2
In the above image in starting graph it is showing dec52nd 2021 week and in below image also it is showing dec 52 week 2021 means it showing 2times and for feb 9th week 2022 and march 9th week 2022 is also showing 2 times.
The data should not show duplicate weeks. Can someone please help with above issue.
Thanks in advance
@Rup10 , Based on what I got you should create a sort column on year week
like
[year]*100 + [week] and mark that as sort column for week
How to Create Sort Column and Solve Related Errors:
https://www.youtube.com/watch?v=KK1zu4MBb-c
Week Start date = 'Date'[Date]+-1*WEEKDAY('Date'[Date],2)+1
Week End date = 'Date'[Date]+ 7-1*WEEKDAY('Date'[Date],2)
Week Number = WEEKNUM([Date],2)
User | Count |
---|---|
85 | |
80 | |
77 | |
49 | |
41 |
User | Count |
---|---|
114 | |
56 | |
51 | |
42 | |
42 |