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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
NZ0090
Frequent Visitor

Sort calculated column with Text data type

Hello everyone!

 

I want to create a slicer for days that will have a default value ("Current Day") and numbers 1-31.

I've created a calculated column like the image below:

NZ0090_0-1677463939230.png

The problem with this code is I can't set [DD_] column data type to Whole Number because otherwise the type won't match with "Current Day" (Text data type), but if I change [DD_] column type to Text data type, the Day slicer won't sort nicely (example in image below):

NZ0090_2-1677464253912.png

If you have any idea, advice or better ways to approach this issue, I'm all ears! Thanks in advance for your help.

 

 

 

 

1 ACCEPTED SOLUTION
Arul
Super User
Super User

@NZ0090 ,

try to use Sort by column option, follow the below steps,
1. Select _CurrDay Slicer calculated column.

2. Then click Sort by column option from the Column tools menu.

Arul_1-1677471310200.png

3. Then sort the column using [DD_] column from the list. (this column data type should be in whole number)

Thanks,

Arul

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


View solution in original post

2 REPLIES 2
Arul
Super User
Super User

@NZ0090 ,

try to use Sort by column option, follow the below steps,
1. Select _CurrDay Slicer calculated column.

2. Then click Sort by column option from the Column tools menu.

Arul_1-1677471310200.png

3. Then sort the column using [DD_] column from the list. (this column data type should be in whole number)

Thanks,

Arul

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


NZ0090
Frequent Visitor

That works! Thanks for your help

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.