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.
Hi.
The numbers on x axis are supposed to represent the number of a month. The text type of months is text and I was wondering if there is a way to reallocate each stack so that their sequence is correct.
Thank you in advance!
Solved! Go to Solution.
Hi @Matija258,
Based on my understanding, the data type of those values (1,10,11,12, etc) displayed on X-axis is text, right? If so, could you change it to whole number? After changing data type, the sort of these values will be 1,2,3...etc.
If you don't want to change data type and still use this column in chart, please try below workaround.
In Query Editor mode, add a custom column. In my test, it's named as [Index column], remember to set its data type to whole number.
Then, in data view, select [month column], change the "Sort by" option from default to [Index column]
Now, when you add [month column] into axis area, its sequence will be 1,2,3....etc
Best regards,
Yuliana Gu
Hi @Matija258,
Based on my understanding, the data type of those values (1,10,11,12, etc) displayed on X-axis is text, right? If so, could you change it to whole number? After changing data type, the sort of these values will be 1,2,3...etc.
If you don't want to change data type and still use this column in chart, please try below workaround.
In Query Editor mode, add a custom column. In my test, it's named as [Index column], remember to set its data type to whole number.
Then, in data view, select [month column], change the "Sort by" option from default to [Index column]
Now, when you add [month column] into axis area, its sequence will be 1,2,3....etc
Best regards,
Yuliana Gu
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |