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
sshiny
Helper II
Helper II

Matrix-Column colour

Is it possible to give, all the sub-columns under April in a particular colour, May in a particular colour and June in a particular colour?

sshiny_0-1659950331122.png

 

1 ACCEPTED SOLUTION
sshiny
Helper II
Helper II

@Dinesh The above measure dint work, however the below measure worked for me-

Color =
var Month_Name = SELECTEDVALUE('Tag Usage Fact'[Month Name])
return
SWITCH(true(), Month_Name = "April", "Green",
Month_Name = "May", "Red",
Month_Name = "Proc Total", "Red",
Month_Name = "Average", "Red",
Month_Name = "June", "Purple")

View solution in original post

2 REPLIES 2
sshiny
Helper II
Helper II

@Dinesh The above measure dint work, however the below measure worked for me-

Color =
var Month_Name = SELECTEDVALUE('Tag Usage Fact'[Month Name])
return
SWITCH(true(), Month_Name = "April", "Green",
Month_Name = "May", "Red",
Month_Name = "Proc Total", "Red",
Month_Name = "Average", "Red",
Month_Name = "June", "Purple")
Dinesh_Suranga
Continued Contributor
Continued Contributor

Hi @sshiny ,

Please create the following measure and add that to background colour in conditional formatting.

Colour  =
// Table name is the table which available month names column and column name is he column which available month names
VAR SelectedMonth= Selectedvalue(Tablename[Columnname])

RETURN
SWITCH(SelectedMonth),
"April" , "blue",
"May" , "green",
"July" , "black",
"white"
)
Thank you.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.