Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Here's the Bar Chart which I would like to rearrange to instead show in the following order.
Critical
High
Medium
Low
Solved! Go to Solution.
Hi @Rnaval,
You would need an additional column with sort order or a table similar to the one below to do that
Then you need to sort your severity column by that order column as described in this article:
https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-sort-by-column
As the last step please make sure to sort the visual by the dimension and not the measure:
Hi, @Rnaval
I am glad to help you.
First click on Transform data, in the Power Query Editor you can add a new column to customize the sort order:
Close & Apply.
Then select the Serverity field in the Table view and click Sort by column, select the column you just added:
I have attached the pbix file for this simple example below, hope it helps.
I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Fen Ling,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Rnaval
I am glad to help you.
First click on Transform data, in the Power Query Editor you can add a new column to customize the sort order:
Close & Apply.
Then select the Serverity field in the Table view and click Sort by column, select the column you just added:
I have attached the pbix file for this simple example below, hope it helps.
I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Fen Ling,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
For some reason it is not working for me, I'm attaching my data and pbix file so you can please have a look.
Just a quick question, is there a way for me to format the total counts with a thousand separator? Meaning a comma if the number is in the thousands?
Sure, just select your measure in Data pane and click comma seperator symbol in the top menu:
How do I access the menu you are showing? I don't see it.
You need to select a related measure in Data pane first (1), then it switches to Measure tools tab (2) automatically. Last step it to apply the formatting you want (3)
Ok Thanks that worked for this chart but not for the chart next to it, any suggestions?
The other chart does not include that same measure, actually it just includes a column. I'd suggest to create a measure and format it accordingly.
Great Thanks
Thank you very much, it's exactly the way I wanted it to look.
Question - did you create a new table? Severity and Severity Order field, Is that a physical table in one of the spreadsheets or a logical table?
I've created a (physical) helper table directly in semantic model (using Enter data method) which includes all the distinct values from Severity column and also added the sort order column, exactly same table as mentioned in my initial message
Thank you
Hi @Rnaval,
You would need an additional column with sort order or a table similar to the one below to do that
Then you need to sort your severity column by that order column as described in this article:
https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-sort-by-column
As the last step please make sure to sort the visual by the dimension and not the measure:
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
87 | |
81 | |
53 | |
37 | |
35 |