Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Use special formatted column as abciss

Hello, I met a new issue with my Power BI report. I have a special column in one of my field: 

YEAR('FS Table'[UTC Data Load Date]) & " W" & WEEKNUM('FS Table'[UTC Data Load Date], 21)

 I set up an incremental refresh and it is working as intended (refresh and increment my dashboard every week).

But I met an issue, the output format of this column is for exemple: 2021 W23, which is intended, but when the refresh add to the column: 2021 W24, it is wrongly sorted. Week 23 is after week 24, like in picture below:

mqje_0-1624259417302.png

Is there a method to have a special text field as x abciss and sort it by the last digit or by the last value added?

I know that I can use the weeknumber as number and fix this issue, but I would like to keep my special text....


Thank you for your time, have a good day!

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,

 

You need to create a "sort by column" for this column.

y_week_sort = YEAR(Sheet1[Date])*100+WEEKNUM(Sheet1[Date],21)

Vlianlmsft_0-1624428458663.png

This will keep your custom sort after each refresh.

Vlianlmsft_1-1624428521651.pngVlianlmsft_2-1624428571836.png

 

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,

 

You need to create a "sort by column" for this column.

y_week_sort = YEAR(Sheet1[Date])*100+WEEKNUM(Sheet1[Date],21)

Vlianlmsft_0-1624428458663.png

This will keep your custom sort after each refresh.

Vlianlmsft_1-1624428521651.pngVlianlmsft_2-1624428571836.png

 

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Anonymous , This format should sort in text format. I doubt it is sorted on value, not on the axis. Check on the three dots option to sort and correct the column

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.