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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

How to change the background colour (or show any indication) on a selected row on a table visual?

Hi,

I have a Table visual that contains populated rows.
I would like it so when the user clicks on a row's cell, within the table visual, the entire row, or even just the cell clicked, has its background colour changed. I need some indication to clearly show which row has been clicked.
I cannot see any Table visual properties to do this. I am happy to use DAX but I will require a nudge in the right direction if using DAX.

Can this be done?

Thanks.

1 REPLY 1
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

Dax cannot get your action statement, so you may not use DAX to achieve your goal directly.  

I can indirectly implement the function you want, but your table must have a unique column with non-repeating data.

For example, I have a table named TEST which has a unique column “A” with three different data ”a” , ”b” and ”c”. Now I create a measure “You selected” based on column A.

You selected =
CALCULATE ( SELECTEDVALUE ( test[a] ) )

Then you can use a table visual and a card visual.

table visual.PNG

The card visual will show the row you click.

However it is an  indirectly way. If you want to achieve your goal in the table visual directly, I am afraid you could not achieve this feature currently, I suggest you to vote this idea in Ideas forum.

https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/35449321-highlight-table-row-upon-clicking

 

Best Regards,

Eads

 

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

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.