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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Sheyi_Shomefun
New Member

How Do I Arrange A column On A Line & Cluster Chart

I'm trying to sort/arrange the values on the columns using a custom arrangement on this viz.
I'm trying to arrange in this order - (Demurrage, Pre-Development, Early Development, Advanced Development, and Signed).
Can someone please advise me on what to do?

Sheyi_Shomefun_0-1700561089622.png

 

7 REPLIES 7
AnalyticPulse
Super User
Super User

It is very simple add new column in data table in which these column categories are present and then add sequence number for the categories like you mentioned.
use this dax to add column:
Serial Number =
SWITCH(
'YourTable'[Category],
"Demurrage", 1,
"Pre-Development", 2,
"Early Development", 3,
"Advanced Development", 4,
"Signed", 5,
BLANK()
)

 

now order your category column based on this new column in data view. select yout category column , GO to column tools, click on sort by column.

on the visual change the ascending or descending order of the x asis fron the sort option available at the top right corner. this will solve the isssue.

 

If this helped, Subscribe AnalyticPulse on YouTube for future updates:
https://www.youtube.com/@AnalyticPulse
https://instagram.com/analytic_pulse
https://analyticpulse.blogspot.com/

subscribe to Youtube channel For fun facts:
https://www.youtube.com/@CogniJourney

Hi,

So this is the problem I'm facing. I know about Switch but for some reason, it's not recognising the category.

Sheyi_Shomefun_0-1700563772544.png

Any suggestions?

no of stages completed column is in another table which is not related to your current table,  create realationship or check the column name. check for extra spaces in column name.

If this helped, Subscribe AnalyticPulse on YouTube for future updates:
https://www.youtube.com/@AnalyticPulse
https://instagram.com/analytic_pulse
https://analyticpulse.blogspot.com/

subscribe to Youtube channel For fun facts:
https://www.youtube.com/@CogniJourney

Still no changes.
Could you explain what this means?

Sheyi_Shomefun_0-1700566909201.png

 

are you creating a measure or column. this dax is for creating the column, 
and can you shwo which dax you are using?
this error should not come when you're suing the provided dax.  phases column in phases_1 table has multiple columns and error means that you're not using any function  like min max etc that returns the single value. please provide more info.

I'm creating a measure.
And I changed the table to it's primary key.
You can see the ERD table too

Sheyi_Shomefun_0-1700568156803.png

Sheyi_Shomefun_1-1700568249334.png

 

for the purpose of the question you posted no need to create a new table.

1. just add new column in the tables where categories are present.

2. select category column and go to home click on sort by :select the column you created.
3 on yout column chart click on sort option(the funnel icon on top right) and select the sort by category.

ascendinn option to keep it in your sequesnce.

 

If this helped, Subscribe AnalyticPulse on YouTube for future updates:
https://www.youtube.com/@AnalyticPulse
https://instagram.com/analytic_pulse
https://analyticpulse.blogspot.com/

subscribe to Youtube channel For fun facts:
https://www.youtube.com/@CogniJourney

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors
Top Kudoed Authors