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
eliasayy
Impactful Individual
Impactful Individual

Conditional Format Value Based On String Not Numbers

I have The Following Table

 

StatusCampaign type
Completed      A
Completed      A
Completed      B
Completed      R
Completed      D
Completed      A
Cancelled      F
Cancelled     GS
Cancelled     GS
Cancelled     W
Cancelled     E
Cancelled     T 
Cancelled     U
Cancelled     W
Cancelled     HG
Cancelled     SF
Cancelled     AS
Cancelled     YF
Paused     A
Paused     N
Paused     N
Paused     J
Running     L

 

So i want to condional formal the campaign type based on staus so like if completed the campaign type should be green, if canceled red, if paused yellow, if running blue

 

1 ACCEPTED SOLUTION
OwenAuger
Super User
Super User

Hi @eliasayy 

For this type of colouring rule, you would need to create a measure that depends on the value of Status, and returns the colour as a text value.

See here for details on the types of text values that are acceptable for defining colours.

 

The conditional formatting would then use Format style = "Field value" and be based on the measure.

 

Here is a simple example I created in a table visual:

OwenAuger_0-1652443101614.png

Regards,

Owen


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn

View solution in original post

1 REPLY 1
OwenAuger
Super User
Super User

Hi @eliasayy 

For this type of colouring rule, you would need to create a measure that depends on the value of Status, and returns the colour as a text value.

See here for details on the types of text values that are acceptable for defining colours.

 

The conditional formatting would then use Format style = "Field value" and be based on the measure.

 

Here is a simple example I created in a table visual:

OwenAuger_0-1652443101614.png

Regards,

Owen


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
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.

Top Solution Authors