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
Ajithrjaa
Frequent Visitor

matrix Primary and secondary Column level separator

Hi Power Bi Pros,

 

I have a One cenario Could you pleasse give me some valueblae suggition on this approch.

I have a matrix visual in a power Bi but I want  Primary Column Level Separator darker Color and Secondary separator column level lighter Color Saparator.  my Primary field values havig a Single field values..

many thnaks.

IN 

Ajithrjaa_1-1707924040936.png



Expected output like

Ajithrjaa_0-1707923207454.png

 








1 ACCEPTED SOLUTION

Hi @Ajithrjaa 

The matrix cannot support custom the grid color, maybe you can consider to format background color to group them, based on the sample I have provided above, create a measure

Measure = SWITCH(SELECTEDVALUE('Table'[Type]),"A","red","B","green","C","blue","D","yellow")

Then put it to the conditional formatting of background color

vxinruzhumsft_0-1709108536989.png

 

Output

vxinruzhumsft_1-1709108552316.png

 

Best Regards!

Yolo Zhu

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
v-xinruzhu-msft
Community Support
Community Support

Hi @Ajithrjaa 

It cannot directly set the color of the hierarchy, you can implement it by using matrix and shape.

e.g After creating the matrix, then add the line shape.

vxinruzhumsft_0-1707966185037.png

Set its rotation to 90.

vxinruzhumsft_0-1707976079575.png

adjust its border color and width, e.g if you want to display the first level column,set the color to dark grey. and set the width to 1px

vxinruzhumsft_1-1707966256912.png

if you want to display the second level column,set the color to light grey. and set the width to 0.5 px

vxinruzhumsft_2-1707966289716.png

Then group the lines and matrix at selection.(the selection option is at 'Format->Selection')

vxinruzhumsft_3-1707966336065.png

Output

vxinruzhumsft_4-1707966379105.png

 

Best Regards!

Yolo Zhu

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

 

@v-xinruzhu-msft @amitchandak 

Thanks for the response.


If my tablix having mutiple Column Scrool Bar is coming by default, then this approch is not sutable.  PFA scren shot.

this statics lines not the way to approch.

Ajithrjaa_0-1707991082747.png

 



 

Hi @Ajithrjaa 

The matrix cannot support custom the grid color, maybe you can consider to format background color to group them, based on the sample I have provided above, create a measure

Measure = SWITCH(SELECTEDVALUE('Table'[Type]),"A","red","B","green","C","blue","D","yellow")

Then put it to the conditional formatting of background color

vxinruzhumsft_0-1709108536989.png

 

Output

vxinruzhumsft_1-1709108552316.png

 

Best Regards!

Yolo Zhu

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

 

 

 

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.