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
Anonymous
Not applicable

Colour code rows according to a column not shown in matrix

Hi, 

 

I have a column in a table called display type which has values sum and normal. I've built a matrix around this table.

I'd like to colour code display type values for sum but i don't want the column display type to be shown on the matrix. 

Is there a way to do this?

 

Thank you.

1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please create a measure and add it to Conditional formatting rule as below.

Measure = IF(SELECTEDVALUE('Table'[type])="sum",1,0)

 1.PNG2.PNG

 

Best Regards,

Jay

Community Support Team _ Jay Wang

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

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

4 REPLIES 4
v-jayw-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please create a measure and add it to Conditional formatting rule as below.

Measure = IF(SELECTEDVALUE('Table'[type])="sum",1,0)

 1.PNG2.PNG

 

Best Regards,

Jay

Community Support Team _ Jay Wang

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

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
Anonymous
Not applicable

@v-jayw-msft I don't see the measure in the conditional formatting part. Do I have to add this to the visual (which i don't want to do).

Thank you.

Hi @Anonymous ,

 

You don't need to add the measure to visual.

Please check this pbix.

 

Best Regards,

Jay

Community Support Team _ Jay Wang

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

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
VasTg
Memorable Member
Memorable Member

@Anonymous 

 

Need little more information to answer your question.If you only want to conditional format display type -sum, you could use the selected value inside switch statement to check "display value =sum" and set the hex color code else none. Then you could use this measure in conditional format.

 

Refer to the documentation.

 

https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting

 

 

Show us the expected output. 

 

If this helps, mark it as a solution

Kudos are nice too

Connect on LinkedIn

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.