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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Mouseman85
Helper I
Helper I

Formatting Text as Decimals with UNICHARs

Hi,

 

I'm trying to create a report that uses card fields to show the differance between two numbers. I want the difference instead of showing a - if its less to show a down arrow. I have this working by doing the following:

 

First I create a column that replaces the charater at poistion 1 which is the - with the UNICHAR arrow.

 

 

DistanceArrowsFirst = IF( 'Distance YoY'[RoundDownDistance] <= 0, REPLACE('Distance YoY'[RoundDownDistance] , 1, 1, UNICHAR(11015)), IF('Distance YoY'[RoundDownDistance]  = 0, FORMAT('Distance YoY'[RoundDownDistance], 00), REPLACE('Distance YoY'[RoundDownDistance],1,0,UNICHAR(11014) )))

 

 

I think create a second column to deal with any numbers that have no difference:

 

DistanceTotalArrows = If('Distance YoY'[DistanceArrowsFirst] = UNICHAR(11015), "0", FORMAT('Distance YoY'[DistanceArrowsFirst],00)) 

 

 

Because these are using Unichars its formatting the final output as a long number when dropped into a card where as a normal number adds the K to the end if it's large. Is there anyway to convert this unichar string to a number or a better way to add the arrows that still allows me to use that column as a number field? 

 

Mouseman85_0-1659778369666.png

Mouseman85_1-1659778383255.png

 

Thanks in advance

1 REPLY 1
lbendlin
Super User
Super User

Have you considered using the default conditional formatting with icons instead?

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors