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
rveerasamy
Helper III
Helper III

sort by pie chart

Could you help me out with this one too. I ve created a shape map and i have me legends looking like this now. 

rveerasamy_1-1648535785469.png

I need them from "0" and "0-2"then to "greater than 10d" in order. Im sure they're the same steps. but could you simplify for me - been using this great software for 2 days so far. 

 

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi @rveerasamy ,

 

You can try to add Index column in the power query.

vzhangti_0-1648798187592.png

Select the Duration column to sort by Index.

vzhangti_1-1648798247458.png

At this point, the new sector chart is in the order you expect it to be.

vzhangti_2-1648798343057.png

Best Regards,

Community Support Team _Charlotte

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-zhangti
Community Support
Community Support

Hi @rveerasamy ,

 

You can try to add Index column in the power query.

vzhangti_0-1648798187592.png

Select the Duration column to sort by Index.

vzhangti_1-1648798247458.png

At this point, the new sector chart is in the order you expect it to be.

vzhangti_2-1648798343057.png

Best Regards,

Community Support Team _Charlotte

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

Tahreem24
Super User
Super User

@rveerasamy Create a column like this:

Sort Column=SWITCH(TRUE(),
Duration="0",1,
Duration="0-2d",2,
Duration="0-5d",3,
Duration="0-10d",4,
Duration="greater than 10d",5)

 

Then go to Data view select Duration column and go to "Sort by Column" and select the newly created above column "Sort Column".

Capture.JPG

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

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.