Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi!
I have a line graph with a dynamic legend. How do I order the legend?
Same question for a matrix btw.
It looks like this:
And I have a table that kind of looks like this:
But I want the line graph ordered by month on the x-axis of course.
Solved! Go to Solution.
@Anonymous,
Given the sample data, you may take advantage of Id column.
@Anonymous,
Given the sample data, you may take advantage of Id column.
Create a calculated column in the same table as your Value field, which has the appropriate sort order - call it ValueSort
Then apply "Sort by columns" (from the modeling ribbon) to the Value column using the ValueSort column.
When you use the Value column in your visual, it will now be properly sorted.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 38 | |
| 36 | |
| 29 | |
| 28 |
| User | Count |
|---|---|
| 127 | |
| 88 | |
| 78 | |
| 66 | |
| 65 |