Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
RingoSun
Helper II
Helper II

Bar chart where one category must always be first

RingoSun_0-1651660792591.png

 

Basically I want the blue bar called sample to always be the first one in my bar chart no matter what the values are. Is something like this possible in Power BI? 

1 ACCEPTED SOLUTION
selimovd
Super User
Super User

Hey @RingoSun ,

 

you can do that with a sort by colum.

There you can say the category "Sample" is always 1. You can define the rest, but don't have to as far as I remember. Check the following article for more information:

https://docs.microsoft.com/power-bi/create-reports/desktop-sort-by-column

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍

Best regards
Denis

Blog: WhatTheFact.bi
Follow me: twitter.com/DenSelimovic

View solution in original post

3 REPLIES 3
SpartaBI
Community Champion
Community Champion

@RingoSun create a sort by column with the same granularity of that column that you put in the visual. In the sort by column put 1 to sample and whatever logic you want for the others. Then in the settings of the original column make it sort by the new column you created.

In the visual make sure you sort the axis by the original column and not the value. It will give you the desired result.

 

In case it answered your question please mark this as a solution for community visibility. Appreciate Your Kudos 🙂 

selimovd
Super User
Super User

Hey @RingoSun ,

 

you can do that with a sort by colum.

There you can say the category "Sample" is always 1. You can define the rest, but don't have to as far as I remember. Check the following article for more information:

https://docs.microsoft.com/power-bi/create-reports/desktop-sort-by-column

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍

Best regards
Denis

Blog: WhatTheFact.bi
Follow me: twitter.com/DenSelimovic

@selimovd 

Hello thanks for the reply! But I cant seem to see where I'm supposed to set the category "Sample" as 1

 

Edit: Nvm I figured it out, it can be done in Power Query

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.