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
KBO
MVP

Coloring Table with different textvalues

Hi,

I like to know how I can coloring text values in a table. If I use "If" in DAX it only shows me Measures. For example I have a table with empolyees from whom I would like to know when they are in a Projekt and when they have vacation time. So my question is there any DAX funktion wich can show me that?

 

Best,

Kathrin

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

Hi @KBO

I made a test to illustrate.

Since your requirement is not completely stated, I would like to supplement it as below:

If empolyees are in a Projekt, text values column "empolyees" of in a table should be colored as red.

Create a measure to indicate which empolyees are in a Projekt.

Measure 3 = IF(MAX([time])="Projekt",1,0)

Then set conditional formatting in a table visual.

5.png

6.png

 

 

Reference:

Conditional formatting in tables

 

Best Regards

Maggie

 

View solution in original post

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hi @KBO

I made a test to illustrate.

Since your requirement is not completely stated, I would like to supplement it as below:

If empolyees are in a Projekt, text values column "empolyees" of in a table should be colored as red.

Create a measure to indicate which empolyees are in a Projekt.

Measure 3 = IF(MAX([time])="Projekt",1,0)

Then set conditional formatting in a table visual.

5.png

6.png

 

 

Reference:

Conditional formatting in tables

 

Best Regards

Maggie

 

Sorry, but that's not exactly what I was looking for. It's a little bit complcated to explain it exact but If I found a solution I will reply it here.

jthomson
Solution Sage
Solution Sage

In lieu of them actually getting conditional formatting working out of the box for text based fields, you could try to create some sort of measure that'll give you a 1 for yes, 0 for no result for each employee depending on the exact logic you want to use and then format based off of that?

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.