October 28 & 29: Experts share their secrets on how to pass the Fabric Analytics Engineer certification exam—live. Learn more
How can i do a manual sort on the legend in a graph visual? Because i use numeric description in the text it sorts as alphas rather than numeric:
I want it sorted in time order:
Solved! Go to Solution.
I assume the "bucket" column you put in Legend should be based on another numeric column. You can't directly have this "Bucket" column sort by that numeric column.
In this scenario, you can create another sort table like:
Bucket | Order |
Early | 1 |
On time | 2 |
5 - 10 days | 3 |
11 - 15 days | 4 |
16+ days | 5 |
Then build the relationship to your existing table on Bucket column, and use "merge queries" to join the Order column into existing Query. Now you should be able to have the Bucket column sort by Order column.
Regards,
I assume the "bucket" column you put in Legend should be based on another numeric column. You can't directly have this "Bucket" column sort by that numeric column.
In this scenario, you can create another sort table like:
Bucket | Order |
Early | 1 |
On time | 2 |
5 - 10 days | 3 |
11 - 15 days | 4 |
16+ days | 5 |
Then build the relationship to your existing table on Bucket column, and use "merge queries" to join the Order column into existing Query. Now you should be able to have the Bucket column sort by Order column.
Regards,
I'm trying to present some survey data:
- Questions: It has 5 questions
- Responses: 12 possible responses
- Instances: the number of times individuals selected that response
I'm having trouble ordering the responses, in the visual below, it's trying to order by reason alphabetically but I have a different order I want. I've created an order table as you suggested below and Left joined it to the core data table using the 'Reason' field.
What are the steps to now order the reasons by the joined order value?
Thanks!
The above visual has the colours in the coloumns ordered by reason alphabetically.
Regardless of whether you relate the tables or merge them:
1. Select your "Response" field
2. Select the "Sort by Column" button
3. Select your "Order" column
Hello,
I tried out what you suggested but the option to sort by 'Order' isn't showing. I've added some screen shots to show how I've created the relationship and that I've merged the tables to add 'Order' to my survey data.
Where have I gone wrong?
Click the two arrows next to "Legend Order" to expand to merge and choose the "Order" column to attach to the table.
Sorted Thanks!
Thanks for your help!
Not sure why you're joining it, just make a relationship between the two tables
User | Count |
---|---|
105 | |
99 | |
98 | |
86 | |
49 |
User | Count |
---|---|
162 | |
142 | |
132 | |
102 | |
63 |