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
bgierwi2
Frequent Visitor

Add URL Conditional Formatting with ICON only

I have a power bi matrix that shows previous test results over the previous years

I have it conditionally formatted to show the result with ICONS only.

 

Is there a way to also include the Web URL conditional formatting with Icons only conditional formatting?

 

If I change the current conditional formatting to show both the icon and result: the Web URL works.  But I want to keep it as Icon only.  Alternatively if I could toggle between the two views (Icon only & Icon with result), that would be an improvement over what I have (but the preference would be icons only).

 

bgierwi2_0-1659300637599.png

 

 

2 REPLIES 2
bgierwi2
Frequent Visitor

@amitchandak 

 

I was able to get it to work!

Using the first measure you listed, that became my value.

Then the second measure was used in the conditional formatting for color.

As you described, and everything makes sense

 

Did have one complication:

I have some entries where a cell has multiple entries (Multiple tests in the same year).  In my previous visual each value was 1,2, or 3 and had conditional monitoring that set the icons.  So the value was sorted to max, and it would only show the worst result (3 was the worst result, 2 was next, and 1 was pass).

Now with the UNICHAR described above, if there are multiple entires nothing is shown.

Is there a way to control how multiple entires are shown in a matrix?

 

amitchandak
Super User
Super User

@bgierwi2 , Create icon and color measures. Use Icon measure in place of measure and use color(Using field value option)  and url

 

example

 

/////Arrow
Arrow =
var _change =[Net Sales YTD]-[Net Sales LYTD]
return
SWITCH (
TRUE(),
_change > 0, UNICHAR(9650),
_change = 0, UNICHAR(9654),
_change < 0, UNICHAR(9660)
)


/////Arrow Color
Arrow color =
var _change =[Net Sales YTD]-[Net Sales LYTD]
return
SWITCH (
TRUE(),
_change > 0, "green",
_change = 0, "blue",
_change < 0, "red"
)

 

refer for unichar icon - https://exceleratorbi.com.au/dax-unichar-function-power-bi/

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.