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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
RENJITH_R_S
Resolver II
Resolver II

Help - Conditional Formatting

Hello 

 

My sample data is

Status   Value   Pre/Post

A             1          Pre

A             2          Post

B             3          Pre

B           3          Post

C           6          Pre

C             7         Post

D             3          Pre

D        3          Post

 

 

 

my 2 visuals are

 

1. slicer 

Select All

Pre

Post

 

2. Table (when Pre is selected)

 

Status   Value

A              1
B               3

C              6
D              3

 

my requirement I want to hightlight A & C , Bcoz its pre &  Post values are different . Please help me with dax for that

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi, @RENJITH_R_S 

Please check the below picture and the sample pbix file's link down below.

I created a measure for highlight and inserted it as conditional formatting rules.

 

Picture12.png

 

Highlight measure =
VAR newtable =
SUMMARIZE (
CALCULATETABLE ( 'Table', REMOVEFILTERS ( 'Table'[Pre/Post] ) ),
'Table'[Pre/Post],
"@value", SUM ( 'Table'[Value] )
)
RETURN
IF (
COUNTROWS ( newtable ) > 1
&& MINX ( newtable, [@value] ) <> MAXX ( newtable, [@value] ),
1,
0
)

 

https://www.dropbox.com/s/34dsv4h5wgnqwof/renjith.pbix?dl=0 

 

Hi, My name is Jihwan Kim.

 

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

 

Linkedin: https://www.linkedin.com/in/jihwankim1975/

 

 


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.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

6 REPLIES 6
v-luwang-msft
Community Support
Community Support

Hi @RENJITH_R_S ,

Has your problem been solved, if so, please consider Accept a correct reply as the solution to help others find it.
 
And the following article is a little similar to your case,wish it is helpful for you!
 
Best Regards
Lucien
Jihwan_Kim
Super User
Super User

Hi, @RENJITH_R_S 

Please check the below picture and the sample pbix file's link down below.

I created a measure for highlight and inserted it as conditional formatting rules.

 

Picture12.png

 

Highlight measure =
VAR newtable =
SUMMARIZE (
CALCULATETABLE ( 'Table', REMOVEFILTERS ( 'Table'[Pre/Post] ) ),
'Table'[Pre/Post],
"@value", SUM ( 'Table'[Value] )
)
RETURN
IF (
COUNTROWS ( newtable ) > 1
&& MINX ( newtable, [@value] ) <> MAXX ( newtable, [@value] ),
1,
0
)

 

https://www.dropbox.com/s/34dsv4h5wgnqwof/renjith.pbix?dl=0 

 

Hi, My name is Jihwan Kim.

 

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

 

Linkedin: https://www.linkedin.com/in/jihwankim1975/

 

 


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.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
selimovd
Super User
Super User

Hey @RENJITH_R_S ,

 

what do you mean with you want to highlight A & C?

 

Best regards

Denis

@selimovd  Back ground conditional Format

Hey @RENJITH_R_S ,

 

sure, that's possible.

Create a measure that has a specific value for the status like this here:

HighlightMeasure = IF(MAX(Table[country]) in { "A", "C" }, 1, 0)

 

Then go to conditional formatting of the column "status":

selimovd_0-1619096680083.png

 

And then set the background color to change when the measure is 1:

selimovd_1-1619096747079.png

 

Afterwards the background Color will change.

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

 

@selimovd , Sorry  for my explaintion, as an example I told to High light background of A & C. I want to highlight the items which having values different in Pre & Post

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors