Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello,
I would like to ask how to properly sort year week because in visual it seems unsorted:
Here is the view of it
Is possible to fix it?
Hi @Analitika ,
Due to the "-" in the middle of the Year-Week number, that value is stored as text. This is the reason the sorting is not working for you.
In order to sort it correctly, you can replace the Year-Week formula you are currently using with the following:
Year-Week =
VAR __Year = Year( [Date] )
VAR __WeekNum = WEEKNUM( [Date] )
RETURN
IF( __WeekNum < 10, CONCATENATE( __Year, "-0" & __WeekNum ), CONCATENATE( __Year, "-" & __WeekNum ))
The difference is the "0" before any single-digit week numbers. This allows the sorting to work correctly.
Hi
Changed data type as Date and format as below
I am getting this
Hi @Analitika ,
Please create a new column on your date table like below :
Kind regards,
Rohit
Please mark this answer as the solution if it resolves your issue.
Appreciate your kudos! 😊
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
97 | |
65 | |
45 | |
39 | |
31 |
User | Count |
---|---|
164 | |
111 | |
61 | |
53 | |
38 |