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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Hyperlinked image with If condition statement

Hi, I have this issue with using the Card visualization as a stop sign in Power BI. I have 2 measures, one with a condition that says

Stop sign 1 = SWITCH(TRUE(), CALCULATE (DISTINCTCOUNT('Sign'[Sign Name]), FILTER('Sign', CONTAINSROW({IF([NBV Difference less CT] < 0, "Red", "Green")}, 'Sign'[Sign Name])))=1,1,0)

The second one is another condition that says Stop sign 2 = IF([NBV Difference less CT] < 0, "INVESTIGATE", "REVIEW")

The Sign table has two rows and two columns, each with a website link to a color, red or green. Refer to photo for reference. 

I am getting inconsistent color and word (it should be green color and the word "REVIEW" but I am getting green and "INVESTIGATE", vice versa)

in the card visual that I create but I can't seem to find any issue with the formula. Anyone has encountered this before?

DSC_3068.JPG

DSC_3069.JPG

DSC_3070.JPG

1 REPLY 1
lbendlin
Super User
Super User

Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.

https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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