cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Post Partisan

## Ordering Number

HI All,

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

Thanks,

1 ACCEPTED SOLUTION
Community Support

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

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

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

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

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.
7 REPLIES 7
Community Support

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.
Super User

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

Post Partisan

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

Super User

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.

Post Partisan

Hi,

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

Community Support

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

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

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

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

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.
Super User

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.

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.