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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.