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
NAOS
Helper IV
Helper IV

resize unicode characters

Hi!

Im using some unicode characters in one of my reports and they look a bit different in terms of size.
Black circle (11044), White circle (9711) and half black circle (9680).

Does anyone know how could I control their size?

Thanks,

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

They should respond to the same formatting controls as all other text. But, if you have them in a table for example and want their size changed relative to the other text in the table then you may need to go with SVG.

 

https://community.powerbi.com/t5/Quick-Measures-Gallery/SVG-Multi-Shape-Multi-Color-Indicators/m-p/5...


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

3 REPLIES 3
Greg_Deckler
Super User
Super User

They should respond to the same formatting controls as all other text. But, if you have them in a table for example and want their size changed relative to the other text in the table then you may need to go with SVG.

 

https://community.powerbi.com/t5/Quick-Measures-Gallery/SVG-Multi-Shape-Multi-Color-Indicators/m-p/5...


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hi @Greg_Deckler,

This is brilliant! hadnt seen your post and this opens to a whole new range of posibilities.

But before that, I need some extra help to understand what Im missing here...

*Shapetest = 
VAR radius = 9
VAR color = "DarkBlue"
VAR opacity = 0.75
VAR Header = "data:image/svg+xml;utf8," &
              "<svg xmlns='http://www.w3.org/2000/svg' x='0px' y='0px' width='50' height='20'>"
VAR ShapeText = "<circle cx='10' cy='10' r='" & radius & "' fill='" & color & "' fill-opacity='" & opacity & "' />"
VAR footer = "</svg>"
VAR ret = Header & ShapeText & footer 
RETURN
ret

Im just trying to get the shape to show, but I get the text string instead...what am I missing? Surely is something basic but I cant see it yet.

Many thanks!

Hi @NAOS,

 

Try to replace the blue part with a colon (:) and change the Data Category to "Image URL".

*Shapetest = 
VAR radius = 9
VAR color = "DarkBlue"
VAR opacity = 0.75
VAR Header = "data&colon;image/svg+xml;utf8," &
              "<svg xmlns='http://www.w3.org/2000/svg' x='0px' y='0px' width='50' height='20'>"
VAR ShapeText = "<circle cx='10' cy='10' r='" & radius & "' fill='" & color & "' fill-opacity='" & opacity & "' />"
VAR footer = "</svg>"
VAR ret = Header & ShapeText & footer 
RETURN
ret

resize-unicode-characters

 

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.