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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Ak_Pikachu
Frequent Visitor

Conditional Text box based on conditional format

I have a question, I want to display a text box visual, on condition basis

If none of values in Red: "Everything Ok"
If some values in Red: "Correct the Values".
I have a DAX that works in Table visual,but I need a text box visual conditionally

Please Help

AEverything Ok
bEverything Ok
cEverything Ok
dCorrect the Values


I got in red based on a condition

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi

 

Sorry, but only now i understood your problem.

 

So, i created a calculated column that checks if the value from table1 matches table2

 

jcalheir_0-1666021463215.png

 

Then created a measure that checks if any missmatched values are in scope

 

jcalheir_1-1666021497851.png

 

 

Hope it helps

 

FILE:
https://we.tl/t-mHWtCBvMDy

 

Kind regards,
José
Please mark this answer as the solution if it resolves your issue.
Appreciate your kudos! 🙂

View solution in original post

9 REPLIES 9
Ak_Pikachu
Frequent Visitor

For Better Idea of what am doing . Please check this
https://community.powerbi.com/t5/Desktop/Conditional-Formatting-based-on-text-fields-Help/m-p/284066...


Please help if this can done.

Anonymous
Not applicable

OK i see.

Then use the same measure you've used for the red formating and put it in a card

 

Check Values = 
VAR __tableAValue = SELECTEDVALUE ( TableA[Value] )
VAR __tableBValue = SELECTEDVALUE ( TableB[Value] )
RETURN
IF ( __tableAValue <> __tableBValue, "Correct the Values","Everything OK" )

 

Kind regards,
José
Please mark this answer as the solution if it resolves your issue.
Appreciate your kudos! 🙂

Hi,

I have tried but its working fine when names are added to table visual and this measure, But this measure alone in a card visual showing Always OK, even if the values are not matching

Please help if there is a way to do.

Anonymous
Not applicable

Could you share the pbix file you are working on so we can take a look?

 

Kind regards,
José
Please mark this answer as the solution if it resolves your issue.
Appreciate your kudos! 🙂

Hi @Anonymous,
Test_format
 Here is the Pbix,

Please look into it.

Anonymous
Not applicable

Hi

 

Sorry, but only now i understood your problem.

 

So, i created a calculated column that checks if the value from table1 matches table2

 

jcalheir_0-1666021463215.png

 

Then created a measure that checks if any missmatched values are in scope

 

jcalheir_1-1666021497851.png

 

 

Hope it helps

 

FILE:
https://we.tl/t-mHWtCBvMDy

 

Kind regards,
José
Please mark this answer as the solution if it resolves your issue.
Appreciate your kudos! 🙂

Thanks @Anonymous  for the Solution,

Worked like a charm

Ak_Pikachu
Frequent Visitor

Thanks for the reply, 

This has to be dynamic , I will have the values get changed.
Not static, what ever the values in red they have to be considered
If any values in red Display for "Correction"
if no red Display "All Okay"

Anonymous
Not applicable

Hi

 

Just create a measure to check if the value "d" is in your column

 

Your Measure = 
IF("d" in VALUES('yourtable'[yourcoulumn]), "Correct the Values","Everithing OK") 

 

Kind regards,
José
Please mark this answer as the solution if it resolves your issue.
Appreciate your kudos! 🙂

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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