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
dgdgdg122db
Helper II
Helper II

color formatting for decomposition tree

Hello there ,

I would like to assign different colors to bars base on the Index number. For example employees with Index number =1 , have red color, and with Index number =2 , then blue color, etc. 

My current measure is incorrect.

Does anyone know how to do that?

Thanks in advance,

 

dgdgdg122db_0-1655278920488.png

dgdgdg122db_1-1655278952837.png

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @dgdgdg122db ,

In this visual, Count will be automatically performed, so the above 16 or 4 are the data obtained by Count, which has nothing to do with index, so it will not work when performing measure conditional formatting.

vyangliumsft_0-1655703518857.png

You need to put the Idex column into it, and set it through Conditional formatting:

vyangliumsft_1-1655703518859.png

Result:

The [Index] column will display the correct color

vyangliumsft_2-1655703518862.png

 

Best Regards,

Liu Yang

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

1 REPLY 1
Anonymous
Not applicable

Hi  @dgdgdg122db ,

In this visual, Count will be automatically performed, so the above 16 or 4 are the data obtained by Count, which has nothing to do with index, so it will not work when performing measure conditional formatting.

vyangliumsft_0-1655703518857.png

You need to put the Idex column into it, and set it through Conditional formatting:

vyangliumsft_1-1655703518859.png

Result:

The [Index] column will display the correct color

vyangliumsft_2-1655703518862.png

 

Best Regards,

Liu Yang

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

Helpful resources

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

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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