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
SJ_PPM_BI
New Member

Button Text Colour not formatting based on Condition

Hi

 

I have three Buttons on my report based on current year and the two is current year + 1 and +2. I want to hide the other buttons based on this. Each button has different bookmarks.

I tried using the text colur format and background, but I noticed that if it doesn't match, the text colour defaults to grey and doesn't retain the selected colour. Lets say on Button 2023, which isn't current year, it formats the colour to default grey. I chose blue font on a blue background as the background for my report page is blue. And when current year does equal to 2023, the font is white. 

 

I am not sure what I am doing wrong for it not to pick up the other condition. I tried all sorts of aggregation and still couldn't get to change the colour.

 

Any help will be greatly appreciated.

 

SJ

 

 

 

1 ACCEPTED SOLUTION

Hi

Thank you for your response.

I am not sure what happened. Maybe an update was needed. It all seems to be working. I did take a screenshot of the issue though:

The 'test' is the button I ended up testing the format issue instead of the actual report. Tried to add conditonal formatting to and it wouldn't change the colour and defaulted to grey! 
But it all seems to be working now. Thanks for trying to help. 

SJ_PPM_BI_0-1667327072935.png

 

View solution in original post

2 REPLIES 2
v-zhangti
Community Support
Community Support

Hi, @SJ_PPM_BI 

 

I tested the issue that I was unable to reproduce for the time being. Can you provide sample files or sample diagrams for your operation? Sensitive data can be removed in advance.

 

Best Regards,

Community Support Team _Charlotte

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

Hi

Thank you for your response.

I am not sure what happened. Maybe an update was needed. It all seems to be working. I did take a screenshot of the issue though:

The 'test' is the button I ended up testing the format issue instead of the actual report. Tried to add conditonal formatting to and it wouldn't change the colour and defaulted to grey! 
But it all seems to be working now. Thanks for trying to help. 

SJ_PPM_BI_0-1667327072935.png

 

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.