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

table conditional formatting change only one row

Hi,
Is it possible to format a row separately in conditional formatting?

 

for example, i have

Name       Sales

Mark         $1000

Kevin         $900

Sarah        $1100

John          $700

 

if sales are above 1000, i want to have green circle next to sales amount, but exception for john, if his sale is above $500, i want him to show green too.

 

so, Mark, Sarah, and John will have green circle next to their sales amount. but not for Kevin

 

thank you!

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

Hi @Anonymous ,

Based on your description, try creating the following two measures.

color = IF(MAX('Table'[Name])="John"&&MAX('Table'[Sales])>=500, UNICHAR(11044),IF(MAX('Table'[Sales])>=1000, UNICHAR(11044),BLANK()))
color = IF(MAX('Table'[Name])="John"&&MAX('Table'[Sales])>=500, UNICHAR(11044),IF(MAX('Table'[Sales])>=1000, UNICHAR(11044),BLANK()))

 

The below is what you want:

vluwangmsft_0-1657245744928.png

vluwangmsft_1-1657245755147.png

Did I answer your question? Mark my post as a solution!


Best Regards

Lucien

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi,
Is it possible to format a row separately in conditional formatting?

 

for example, i have

Name       Sales

Mark         $1000

Kevin         $900

Sarah        $1100

John          $700

 

if sales are above 1000, i want to have green circle next to sales amount, but exception for john, if his sale is above $500, i want him to show green too.

 

so, Mark, Sarah, and John will have green circle next to their sales amount. but not for Kevin

 

thank you!

Hi @Anonymous 

Create a measure for the same returning 1 when you want it o show green and 0 otherwise.

 

Go o conditional formatting, use this measure to get the desired result.

Set 1 to show Green.





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile
Anonymous
Not applicable

Hi,
I do not see anything..
it only shows blue rectangle

v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

Based on your description, try creating the following two measures.

color = IF(MAX('Table'[Name])="John"&&MAX('Table'[Sales])>=500, UNICHAR(11044),IF(MAX('Table'[Sales])>=1000, UNICHAR(11044),BLANK()))
color = IF(MAX('Table'[Name])="John"&&MAX('Table'[Sales])>=500, UNICHAR(11044),IF(MAX('Table'[Sales])>=1000, UNICHAR(11044),BLANK()))

 

The below is what you want:

vluwangmsft_0-1657245744928.png

vluwangmsft_1-1657245755147.png

Did I answer your question? Mark my post as a solution!


Best Regards

Lucien

Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attached pbix file.

One of ways to solve this is to create a measure like below and select this measure "Format style" -> "Field value" inside "conditional formatting" -> "background color" section.

 

Untitled.png

 

Sales total measure conditional format: = 
SWITCH (
    SELECTEDVALUE ( Sales[Name] ),
    "John", IF ( [Sales total measure:] >= 500, "Green" ),
    IF ( [Sales total measure:] >= 1000, "Green" )
)

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


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.