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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Anonymous
Not applicable

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
Anonymous
Not applicable

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.

 

@Anonymous @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

 



 

Anonymous
Not applicable

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors