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
Alexandra_B
Helper III
Helper III

Adjust the size of icons under Tables

Hello.

I am trying to make the icons smaller, and cannot find a way of doing it.

Basically, I have the data (summarised). I created the following:

 

Target = 0

 

ok = REPT(UNICHAR(128994), [Green])
 
Green = if(sum(data)<[Target],0,1)
 
Flag Alarms = if(sum(data) <=[Target],1,0)
 
Alert = REPT(UNICHAR(128308), [Flag Alarms])
 
Blink =
VAR __color = "Red"
VAR __lineColor = "Black"
VAR __lineThickness = 1
VAR __radius = 7
VAR __opacity = 1
VAR __rand = RAND()
VAR __header = "data&colon;image/svg+xml;utf8," &
              "<svg
                xmlns:dc='http://purl.org/dc/elements/1.1/'
                xmlns:cc='http://creativecommons.org/ns#'
                xmlns:svg='http://www.w3.org/2000/svg'
                xmlns='http://www.w3.org/2000/svg'
                width='100%' height='100%'>"
VAR __footer = "</svg>"
VAR __shapeTextCircle = "<circle cx='10' cy='10' r='" & __radius & "' fill='" & __color & "' fill-opacity='" & __opacity & "' stroke='" & __lineColor & "' stroke-width='" & __lineThickness & "'> " & "<animate attributeName='opacity' from='1' to='0' dur='1s' begin='0s' repeatCount='indefinite'/></circle>"

RETURN IF([Flag Alarms],__header & __shapeTextCircle & __footer,"")
 
 Then I created a Tabled, added my values, Blink (Set its Data category as Image URL), then applied Conditional formatting - Icons, as below:
 
Alexandra_B_1-1692179829837.png

 

 

I would like to resize the Icon as I need the data displayed in a single row, without spaces above or below as in the following image. I can do in the Blink icon, but cannot adjust the green icon.

If this is not possible, how can I set it red and green (green in > target, red if <= target) and visualize the data in a single row?


Thank you.

 
 

 

Alexandra_B_0-1692179508727.png

 

1 ACCEPTED SOLUTION
Alexandra_B
Helper III
Helper III

Issue resolved 🙂
I found it under Visual - Image size, and I adjusted it there:

Alexandra_B_0-1692271170906.png

 

Alexandra_B_1-1692271257948.png

 

View solution in original post

1 REPLY 1
Alexandra_B
Helper III
Helper III

Issue resolved 🙂
I found it under Visual - Image size, and I adjusted it there:

Alexandra_B_0-1692271170906.png

 

Alexandra_B_1-1692271257948.png

 

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.