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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

need help on conditional formatting

Lucasw_0-1657736366085.png

Here is my table visual, I want to apply conditional formatting to each row to see if we meet our target every month. I know field value might work, but I don't know how to set up a field value. Please help!!! My brain doesn't work LOL, I was stuck here for 2 days. Really need help.

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

Conditional formatting of bolded text is not currently supported, please submit your ideas here.

 

https://ideas.powerbi.com/ideas/ 

 

Best Regards,
Winniz

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

I think if I can create a measure that only contains one row, then it's ok to use it to set up the field value. 

here is my code. But I don't know why it affects all the rows.....

color =
VAR result =
CALCULATE(SELECTEDVALUE('CORP KPIs'[NJan]), ALLSELECTED('CORP KPIs'[NJan]))
VAR R =
IF(result <= 225, "Green","red")
return R

Hi @Anonymous ,

 

If your months are columns in the table, then you have to create separate measures for each month. Take January as an example.

 

Jan_Color = 
IF (
    SELECTEDVALUE ( 'CORP KPIs 1'[ID] ) = "CAPA aging",
    IF ( SUM ( 'CORP KPIs 1'[Jan] ) <= 225, "Green", "Red" )
)

vkkfmsft_2-1658113386609.png

 

If you want to do this in a measure, then you need to unpivot these month columns in Power Query and then create the measure.

 

vkkfmsft_0-1658112787724.png

vkkfmsft_1-1658112820345.png

color = 
IF (
    SELECTEDVALUE ( 'CORP KPIs 2'[ID] ) = "CAPA aging",
    IF ( SELECTEDVALUE ( 'CORP KPIs 2'[Value] ) <= 225, "Green", "Red" )
)

vkkfmsft_3-1658113394205.png

 


If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Anonymous
Not applicable

Hi V,

Thank you for reply this. 

Do you know if there is a way to bold a single column?

 

Hi @Anonymous ,

 

Conditional formatting of bolded text is not currently supported, please submit your ideas here.

 

https://ideas.powerbi.com/ideas/ 

 

Best Regards,
Winniz

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.