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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
colourfullife
Post Partisan
Post Partisan

Ordering Number

HI All,

Is there a way to show number order of X, 1 2 3 4 5...?

Thanks,

question 2.PNG

1 ACCEPTED SOLUTION

Hi @colourfullife ,

 

we can keep origin column as text type, then create a new calculate column as decimal number

 

rank = VALUE('Table'[Order Number])

5.PNG

 

Then put the new column into the tooltips field of chart.

 

6.PNG

 

At last we can sort by this rank column to meet your requirement.

 

7.PNG8.PNG

 

 

 

BTW, pbix as attached.

 

Best regards,

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team _ Dong Li
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

7 REPLIES 7
v-lid-msft
Community Support
Community Support

Hi @colourfullife ,

 

How about the result after you follow the suggestions mentioned in my original post?

 

Best regards,

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team _ Dong Li
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

Your question is not very clear. Can you please provide an example.

Hi,

 

The X asix of graph shows number

0.5  0.7  1  1.5 10  12  14  16  18  2  20 . . .

 

I want the number order like

 0.5  0.7  1  1.5  2  3  4 . . . 10 11 12 13 . . . 20 21 22 . . .

like number ascending , Does it now make sense?

 

thank you,

CL

 

First of all, check, if this field is marked as a number in the data model, or can you make it as a number. Will that work out? (or Do you want to make it a number)

 

Else you need to have a new column in number format. refer 

https://docs.microsoft.com/en-us/dax/value-function-dax

 

and define that column as a sort column for this one. 

Hi,

 

Thanks for the replying.

the column is text type, but if i changed it to number type, then the decimal number will be changed..

is there any ways that i can keep the column text type but order them as ascending?

 

thnk you,

CL

Hi @colourfullife ,

 

we can keep origin column as text type, then create a new calculate column as decimal number

 

rank = VALUE('Table'[Order Number])

5.PNG

 

Then put the new column into the tooltips field of chart.

 

6.PNG

 

At last we can sort by this rank column to meet your requirement.

 

7.PNG8.PNG

 

 

 

BTW, pbix as attached.

 

Best regards,

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

You have to create a new column based on this in number format and define that column as a sort column for this. else you have to use padding to make sure that single-digit numbers are sort before. 

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.