cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ayupchap
Helper III
Helper III

Ordering issue on a visual

I am trying to sort by quesiton but as you can see its not quite working out.  Is there anythign I can do to fix this?

 

sort issue.PNG

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

@Ayupchap

 

Hi, you need a extra column with the order.

 

Demo:

 

Question   Order

Question 1   1

Question 2   2

Question 10   10

 

After that go to modeling Sort By Column and Select Order Column.




Lima - Peru

View solution in original post

2 REPLIES 2
Vvelarde
Community Champion
Community Champion

@Ayupchap

 

Hi, you need a extra column with the order.

 

Demo:

 

Question   Order

Question 1   1

Question 2   2

Question 10   10

 

After that go to modeling Sort By Column and Select Order Column.




Lima - Peru

You can probably use the Query Editor to help you with this.

 

Highlight the column wtih the the text "Question 1" etc, then click the Transform tab and then the Split Column button to split by delimiter.

 

This will give you a new column with just the number component (so long as your data is consistent)

 

Split by delimiter.png

 

 

You can then set this solumn to be numeric and use this as your "Sort By Column" back in Power BI

 

Sort by mont.png


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Helpful resources

Announcements
Join Arun Ulag at MPPC23

Join Arun Ulag at MPPC23

Get a sneak peek into this year's Power Platform Conference Keynote.

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Top Solution Authors