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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
vmonu
Helper II
Helper II

Matrix Visual ... Sort by column which i don't want to show

Good day all,

 

I have table say

Column 1                Name ...... other fields

00001-A                   A

00001-B                   B

00002-A                   A

 

So when i do a Matrix Visual .

I just want to show ONLY Name column (sorted) which it does but it will show A both for 00001-A & 00002-A values.

 

So when i try add the Column 1 as sort by ... it works 

 

But i don't want that column  to show in the ROW HEADER... 

Any way to sort by or hide that value  alone

 

Thanks

MN

1 ACCEPTED SOLUTION

@v-rzhou-msft 

 

Yep smart idea...it worked. ... credit to you... but let me sum it for others as the solution involves 2 messages from Rico but i got to tweak it litle bit.

 

1)  I brought both the columns to the COLUMN level in the MATRIX

2) The sort happened on the 1st column (i..e. 00001-A ) but i renamed the column to dot or comma (i.e. . or , ) so it won't show in the header

3) But the values were showing up like 00001-A, 00001-B, 00002-A also in the column header and below that the proper header like  A, B, A were showing up

4) To avoid that .. i used Rico 2nd idea... created a Rectangle (empty) one and made color white ... and laid it on the top of the 1st column header... Volla .. now it will loook like only the A, B, A header shown.

 

Thanks again... amazing idea.

Best 

 

MN

             

View solution in original post

9 REPLIES 9
v-rzhou-msft
Community Support
Community Support

Hi @vmonu 

If your use the same column header like A, the result will aggregate.

So we need to make the column header be different.

Test table:

1.png

Power Query Editor:

Add two duplicate column(ID and Name), then merge two colums.

Result:

2.png

Dax:

Calculated column

Dax = 'Table'[Name]&"("&'Table'[ID]&")"

Let Merge and Dax column sort by Index column.

3.png

 Then build a Matrix visual(Select show on rows in values, turn off word wrap in Row headers, drag the line in visual to reduce the size of Row header to 0).

4.png

Result:

5.png

You can download the pbix file from this link: Matrix Visual ... Sort by column which i don't want to show

 

Best Regards,

Rico Zhou

 

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

 

 

@v-rzhou-msft , unfortuantely ,

 

How do i hide the first line .. the row header doesn't allow me to make it to ZERO or doesn't even bring it reduce the size to make it invisible . that's the problem. 

Do i make sense... see the one in Yellow . i don't want them to show at all 

 

vmonu_0-1597681715174.png

Thanks

Hi @vmonu 

You may change the color of column header to be white.

1.png

Result:

2.png

Or you can build a rectangle in same length size to cover the column header.

3.png

Move the rectangle to cover the column header, select two visual by ctrl + left click and group two visuals.

Result:

4.png

Best Regards,

Rico Zhou

 

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

@v-rzhou-msft 

 

Yep smart idea...it worked. ... credit to you... but let me sum it for others as the solution involves 2 messages from Rico but i got to tweak it litle bit.

 

1)  I brought both the columns to the COLUMN level in the MATRIX

2) The sort happened on the 1st column (i..e. 00001-A ) but i renamed the column to dot or comma (i.e. . or , ) so it won't show in the header

3) But the values were showing up like 00001-A, 00001-B, 00002-A also in the column header and below that the proper header like  A, B, A were showing up

4) To avoid that .. i used Rico 2nd idea... created a Rectangle (empty) one and made color white ... and laid it on the top of the 1st column header... Volla .. now it will loook like only the A, B, A header shown.

 

Thanks again... amazing idea.

Best 

 

MN

             

amitchandak
Super User
Super User

@amitchandak ,  Thanks yes i am aware... but 

when you do a  MATRIX VISUAL ( not regualr table column) 

it always sorts by the 1st column , you select.

 

Please see message 2  and i posted .. what is coming and what i am expecting.

 

Thanks

MN

@vmonu , If you want to sort on a column which is not present. I doubt that is possible.

 

Hope I got it correctly 

Dang is there a way i can even hide it in the COLUMN header ...

 

Let's wait and see... and there are some visuals that allow to sort by TOOLTIPS and anot show.

 

Let me wait and see.. Thanks

vmonu
Helper II
Helper II

In other words..

i want to show like this

                 A                                          B                                            A 

             <values for 00001-A>        < values for 0001-B.>            < values for 00002-A>

 

Right now it's showing

 

                          A                                          A                                            B

<values for 00001-A>        < values for 0002-A.>            < values for 00002-A>

 

Hope it helps

 

Thanks

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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