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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
Anonymous
Not applicable

Mark specific row in a table visual

Hi,

in my Excel file I have a table with 10 columns and yellow marked rows.
I display this table in Power Bi. Is it possible in Power Bi to mark the rows

'Test 1 first test' and

'Test 2 second test' ,

'Test 3 third test' yellow like in my Excel file ?

 

Dom898_0-1648980903397.png

Power BI Table visual:

Dom898_2-1648981338816.png

can anyone help me out? many thanks !

 

3 ACCEPTED SOLUTIONS
v-cgao-msft
Community Support
Community Support

Hi @Anonymous ,

 

Row-based conditional formatting is not supported in Power BI yet, so you need to set conditional formatting for each field in the table visual.

Please new a measure.

colour =
VAR _value =
    CALCULATE ( COUNTROWS ( 'Table' ), FILTER ( 'Table', 'Table'[Id] = BLANK () ) )
RETURN
    IF ( _value <> BLANK (), "yellow" )

Then set conditional formatting for each field in the table visual.

vcgaomsft_1-1649221527139.png

vcgaomsft_0-1649221464657.png

Result.

vcgaomsft_2-1649221579584.png

Attach the PBIX file for reference. Hope it helps.

 

Best Regards,
Community Support Team_Gao

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems with it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

View solution in original post

Anonymous
Not applicable

Hi,

thank you for the solution, but how can I sort the line so that e.g. under test 1 (marked yellow) all test 1 are displayed and with test 2 (marked yellow) all test 2  ???

 

Dom898_0-1649337500386.png

 

thanks a lot

View solution in original post

Hi @Anonymous ,

 

You can sort correctly by index column.

For example. First add an index column in the Power Query Editor. Close and apply.

vcgaomsft_0-1649380572712.png

Drag the [index] column into the visual and sort in ascending order.

vcgaomsft_1-1649380922961.png

Turn off the text wrap and drag the width of the index column to the minimum.

vcgaomsft_2-1649381052557.png

vcgaomsft_3-1649381209612.png

Attach the PBIX file for reference. Hope it helps.

 

Best Regards,
Community Support Team_Gao

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems with it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

View solution in original post

4 REPLIES 4
v-cgao-msft
Community Support
Community Support

Hi @Anonymous ,

 

Row-based conditional formatting is not supported in Power BI yet, so you need to set conditional formatting for each field in the table visual.

Please new a measure.

colour =
VAR _value =
    CALCULATE ( COUNTROWS ( 'Table' ), FILTER ( 'Table', 'Table'[Id] = BLANK () ) )
RETURN
    IF ( _value <> BLANK (), "yellow" )

Then set conditional formatting for each field in the table visual.

vcgaomsft_1-1649221527139.png

vcgaomsft_0-1649221464657.png

Result.

vcgaomsft_2-1649221579584.png

Attach the PBIX file for reference. Hope it helps.

 

Best Regards,
Community Support Team_Gao

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems with it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

Anonymous
Not applicable

Hi,

thank you for the solution, but how can I sort the line so that e.g. under test 1 (marked yellow) all test 1 are displayed and with test 2 (marked yellow) all test 2  ???

 

Dom898_0-1649337500386.png

 

thanks a lot

Hi @Anonymous ,

 

You can sort correctly by index column.

For example. First add an index column in the Power Query Editor. Close and apply.

vcgaomsft_0-1649380572712.png

Drag the [index] column into the visual and sort in ascending order.

vcgaomsft_1-1649380922961.png

Turn off the text wrap and drag the width of the index column to the minimum.

vcgaomsft_2-1649381052557.png

vcgaomsft_3-1649381209612.png

Attach the PBIX file for reference. Hope it helps.

 

Best Regards,
Community Support Team_Gao

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems with it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

Greg_Deckler
Super User
Super User

@Anonymous Perhaps if you conditionally format the backgrounds if the cells are blank? You can do this with Rules conditional formatting.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

Check out the March 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors