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
AledDavies
Regular Visitor

Changing a table row colour when selected

Hi,

I have a table in a PowerBi report where the user can select records, and using Power Automate, send e-mails to those selected. As standard, PowerBi greys out the rows not selected leaving the selected rows as they are. However, this is not that clear in the table. Is there a way of changing the colour of the background or text when a row or multiple rows are selected? I've read that it can be done with slicers but that doesn't do what I need the report to do. Has anyone found a way of doing this?

Thanks Aled

4 REPLIES 4
AledDavies
Regular Visitor

Thanks @eliasayyy. That will be useful for another report I'm creating. However,one I'm trying to do it without a slicer. When the user selects a row or does Ctrl and selects multiple rows in the table it changes it's colour of the ones selected. Not sure if it's possible though.

 

Thanks again

Aled

oh i see yes if you just select the rows from the table it wont work

I didn't think it was possible. Thanks for the help though.

eliasayyy
Memorable Member
Memorable Member

hello

Background = 
SWITCH(
    SELECTEDVALUE('Table'[Name]),
    "A","green",
    "B","yellow",
    "C","blue"
)

 

annonymous1999_0-1691502433895.png

 

annonymous1999_1-1691502452021.png

 

annonymous1999_2-1691502464129.png



annonymous1999_3-1691502474245.pngannonymous1999_4-1691502481169.png

 

 

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 Kudoed Authors