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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Anonymous
Not applicable

Conditional Formatting Matrix with DAX

I created this matrix that almost looks like I want but I am having trouble with the conditional formatting.
I am trying to use conditional formatting to change the 'Due Date' to be transparent at the highest level of the matrix and show when I expand. I'm finding that when I only have one item in the drill down that my conditional formatting doesn't work. 

TaylorG_0-1717551130593.png

TaylorG_2-1717551464194.png

 

Transparent = if(ISBLANK(SELECTEDVALUE(RCA_All_Actions[UI_Description])),"#FFFFFF00","#000000")



 

1 ACCEPTED SOLUTION
Moetazzahran
Resolver II
Resolver II

Hello, 

I imagine that if you use a

HASONEVALUE('Table'[UI_Description])||ISBLANK(SELECTEDVALUE('Table'[UI_Description])) condition in your measure, it should work properly. 
I tested this measure and it worked properly for me. 

Measure = SWITCH(TRUE(),
    HASONEVALUE('Table'[UI_Description])||ISBLANK(SELECTEDVALUE('Table'[UI_Description])),
        "#FFFFFF00",
    "#000000" )

Thank you. If you think this solution helped, please accept it as a solution and your kudos will be much appreciated!


View solution in original post

1 REPLY 1
Moetazzahran
Resolver II
Resolver II

Hello, 

I imagine that if you use a

HASONEVALUE('Table'[UI_Description])||ISBLANK(SELECTEDVALUE('Table'[UI_Description])) condition in your measure, it should work properly. 
I tested this measure and it worked properly for me. 

Measure = SWITCH(TRUE(),
    HASONEVALUE('Table'[UI_Description])||ISBLANK(SELECTEDVALUE('Table'[UI_Description])),
        "#FFFFFF00",
    "#000000" )

Thank you. If you think this solution helped, please accept it as a solution and your kudos will be much appreciated!


Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.