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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
pang22
Helper III
Helper III

Revise the order of header in PowerBI

Hello,

 

How to change the order of the red and blue one in PowerBI?

That is Heritage put on the left and Fashion put on the right.

And Order OH put on the left and OPN put on the right. Thanks.

 

pang22_0-1697767602145.png

 

pang22_3-1697767720002.png

 

pang22_2-1697767660370.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @pang22 ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data. 

vtangjiemsft_0-1698039846065.png

(2) We can create tables.

Table 2 = DATATABLE ( 
    "Factory", STRING, "Index", INTEGER,
    {
        { "Heritage", 1 },
        { "Fashion", 2 }
    }
)
Table 3 = DATATABLE ( 
    "Type", STRING, "Index", INTEGER,
    {
        { "Order OH", 1 },
        { "Opn", 2 }
    }
)

vtangjiemsft_1-1698039902791.png

(3) Select the Factory column of Table2 to sort by index column, and select the Type column of Table3 to sort by index column. Place the Factory column of Table2 and the Type column of Table3 on the matrix visual object.

vtangjiemsft_2-1698040089913.pngvtangjiemsft_3-1698040108141.pngvtangjiemsft_4-1698040184039.png

 

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @pang22 ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data. 

vtangjiemsft_0-1698039846065.png

(2) We can create tables.

Table 2 = DATATABLE ( 
    "Factory", STRING, "Index", INTEGER,
    {
        { "Heritage", 1 },
        { "Fashion", 2 }
    }
)
Table 3 = DATATABLE ( 
    "Type", STRING, "Index", INTEGER,
    {
        { "Order OH", 1 },
        { "Opn", 2 }
    }
)

vtangjiemsft_1-1698039902791.png

(3) Select the Factory column of Table2 to sort by index column, and select the Type column of Table3 to sort by index column. Place the Factory column of Table2 and the Type column of Table3 on the matrix visual object.

vtangjiemsft_2-1698040089913.pngvtangjiemsft_3-1698040108141.pngvtangjiemsft_4-1698040184039.png

 

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

amitchandak
Super User
Super User

@pang22 , for that go and create a sort columns

 

new columns

 

Factory 1= [Factory]

 

Factory sort  = Switch([Factory],

"Heritage",1,

"Fashion",2,

3)

 

Now mark Factory sort  as sort column of Factory 1 in column tools and use Factory 1 in visual

 

How to Create Sort Column and Solve Related Errors:
https://www.youtube.com/watch?v=KK1zu4MBb-c

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak Thanks for your reply.

I input the formula and click Factory sort.

Then I put Factory 1 in the columns field. 

But it still show the "Fashion" on the left.

Could you have a check?

 

pang22_0-1697772585749.png

pang22_1-1697772600638.png

pang22_2-1697772618451.png

 

pang22_4-1697772675885.png

pang22_3-1697772651812.png

 

 

Helpful resources

Announcements
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.