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
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
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.