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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
dd88
Resolver I
Resolver I

different groups of data highlight/change colour make to make it easy to read

I have a column with data of family surname and another column that contains family members first name.

 

the visual is a the table. To make it eaiser to read, when the surname group (value changes) is there a way to change colour, to easily identify the the differnt groups?

Column names.png

 

 

TIA

 

1 ACCEPTED SOLUTION

what i suggest is to use a matrix visual and turn off stepped layout

11.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

8 REPLIES 8
v-yohua-msft
Community Support
Community Support

Hi, @dd88 

First, you'll need to create a measure that assigns a unique color based on last name. This measure can be assigned color using the or DAX functions.

Color Measure = 
SWITCH(
    TRUE(),
    [Surname] = "Smith", "lightblue",
    [Surname] = "Johnson", "lightgreen",
   
    "defaultColor"
)

Go to the table visual, and under the Visualizations pane, find the column that you want to format. Click the drop-down arrow next to the column name, select Conditional formatting, and then select Background color or Font color, depending on your preference.

 

How to Get Your Question Answered Quickly 

Best Regards

Yongkang Hua

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

ryan_mayu
Super User
Super User

I suggest you to show the data in the matrix visual. Then it will be easier to see the surname group

https://learn.microsoft.com/en-us/power-bi/visuals/desktop-matrix-visual?wt.mc_id=DP-MVP-5004616





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hello @ryan_mayu 

 

please find sample data ..

 

SurnameFirst name
AdamsLee Adams
AdamsShane Adams
AdamsElle Adams
AdamsJack Adams 
BrownAnthony (Tony) 
BrownKylie Brown
ClarkDanelle Clark
ClarkSue Clark
ClarkLee Clark
ClarkLana Clark
ClarkJacob (Jake) O'Donnell
Carter/CooperTina Carter
Carter/CooperRob Cooper

what i suggest is to use a matrix visual and turn off stepped layout

11.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Thanks @ryan_mayu  yes that looks great and meets the user requirements. 

 

 

you are welcome





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Many thanks @ryan_mayu  I will look into it ..

you are welcome





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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