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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
carloshluiz
Regular Visitor

Graphic Time Order

Hello everybody.

 

Could you please help me how to put it in chronological order?

I already tried through the option "Axis classification or Legend classification" but it is not in the order it should.

can you help me?

 

It should be like this:

 

Today | 1-7 days | 8-15 days | 16-50 days | 51-100 days | >100 days

 

carloshluiz_0-1656075982596.png

 

Thank you 🙂

 

1 ACCEPTED SOLUTION
v-yangliu-msft
Community Support
Community Support

Hi  @carloshluiz ,

I created some data:

vyangliumsft_0-1656405397448.png

If we have multiple [Index] in a [Group], direct Sort by may cause one value to correspond to multiple values

We can create a table and use the [Group] of another table to sort.

Here are the steps you can follow:

1. Use Enter data to create a table.

vyangliumsft_1-1656405397450.png

2. Join the relationship between the two tables.

vyangliumsft_2-1656405397450.png

3. Click [Group] - Column tools - Sort by column - [Index] of Table2.

Such a [Group] will correspond to an [Index], and there will be no conflict.

vyangliumsft_3-1656405397455.png

4. Result:

[Group1] of Table 1 – Axis

[Group] of Table 2 – Legend

vyangliumsft_4-1656405397458.png

 

Best Regards,

Liu Yang

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

3 REPLIES 3
v-yangliu-msft
Community Support
Community Support

Hi  @carloshluiz ,

I created some data:

vyangliumsft_0-1656405397448.png

If we have multiple [Index] in a [Group], direct Sort by may cause one value to correspond to multiple values

We can create a table and use the [Group] of another table to sort.

Here are the steps you can follow:

1. Use Enter data to create a table.

vyangliumsft_1-1656405397450.png

2. Join the relationship between the two tables.

vyangliumsft_2-1656405397450.png

3. Click [Group] - Column tools - Sort by column - [Index] of Table2.

Such a [Group] will correspond to an [Index], and there will be no conflict.

vyangliumsft_3-1656405397455.png

4. Result:

[Group1] of Table 1 – Axis

[Group] of Table 2 – Legend

vyangliumsft_4-1656405397458.png

 

Best Regards,

Liu Yang

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

Surya9
Helper V
Helper V

@carloshluiz if the legent you are using(Today | 1-7 days | 8-15 days | 16-50 days | 51-100 days | >100 days) is column then create another column and create index like 1-7 days as 1 , 8-15 days  as 2 and so on then sort the legent with this new clolumn and  then recreate the visual this will fix the issue. 

amitchandak
Super User
Super User

@carloshluiz , You need to create order by column for and assign to this column using the sort column option

Axis classification or Legend classification 1 = [Axis classification or Legend classification]

 

Axis classification or Legend classification Sort = Switch([Axis classification or Legend classification],

"Today ", 1,

" 1-7 days", 2

//

)

 

Sort Month.png

 

How to Create Sort Column and Solve Related Errors:
https://www.youtube.com/watch?v=KK1zu4MBb-c

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.