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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
PGY
Frequent Visitor

Color Code for table visual

Dear experts,

 

I have 2 datasets - that I would like to display in a single table visual.

Dataset 1 - has all the IDs  and also a calculated field (colorcode-days) that I used as to color the timeline column. (0 red, 1 yellow, 2 no color)

PGY_0-1675340178715.png

Dataset2 - only has some of the IDs (ID 1-4) where some IDs can have more than 1 rows

(e.g.: Row1 : ID1 activity 1; Row2: ID2, activity 2, ...)

 

There was a key to connect dataset 1 and dataset 2.

 

When I put columns from dataset1 only, the color on timeline column works just fine. However, when I included columns from dataset2, only the common IDs on both datasets have the timeline color.

PGY_1-1675340575923.png

(Note: ID5,7 and 10 - lose their timeline color after I added Grade column from dataset2).

 

Would you please kindly advise how to solve this?

 

 

 

1 REPLY 1
v-jingzhang
Community Support
Community Support

Hi @PGY 

 

I did a test. If [Grade] field in the table visual is aggregated no matter using Sum/Average/Maximum/Minumum..., the conditional color works well.  

vjingzhang_0-1675403426654.png

 

However, if using "Don't summarize" for Grade field in the table visual, the colors are not correct. From the table visual, you can find that "Sum of Color-Code-Days" field is not working like before and its result is different from that in "ColorCode-Days" field which is not summarized. This is because when the "Grade" field is not summarized, it will pass a filter to other fields in the same table visual. For non-summarized fields, it seems not affected. But for measures and aggregated fields, this filter will affect their results. 

vjingzhang_1-1675403678657.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.