cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
stumac_31
Helper III
Helper III

£ & % Symbols

I have an app drawing data from a PowerQuery table, in both the original table and the PowerQuery the data is correctly formatted as £ and as %, however, when it pulls through to the app it's in decimal. Any idea how I get the symbols back and format the number accordingly (see attached).

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @stumac_31,

Based on the issue that you provided, I think the Text function could achieve your needs. 

If you want to include the symbol % behind the value, please take a try with the following formula:

Text(Value(ThisItem.'Days_spent_(_x0025_)')*100,"[$-en-US]###.00%")

If you want to include the symbol £  in front of the value, please take a try with the following formula:

Text(Value(ThisItem.'Budget_spent_(£)'),"[$-en-US]£ ##0.00")

More details about Text function, please check the following article:

Text function

 

Best regards,

Kris

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

View solution in original post

7 REPLIES 7
Drrickryp
Super User II
Super User II

Hi @stumac_31,

For the first formula if .## is used instead of .00, 1.70 will  appear as 1.7  if .00 is used as in the example, it forces the second 0 placeholder and appears as 1.70

Text(ThisItem.Yournumber,"£###.00")
Value(ThisItem.Yournumber*100,"###%"

 

Thank you very much @Drrickryp, got it rounding, but anyway to include the symbol £ in front, and % behind?

Here are my formulas....

 

%

RoundDown(Value(ThisItem.'Days_spent_(_x0025_)'*100,"###%"),1)

 

£

Text(ThisItem.'Budget_spent_(£)',"[$-en-US]£####.00")

 

Attached screenshot

%

Text(ThisItem.OData__OldID/Quantity*100,"###%")

£

Text(RoundDown(ThisItem.Quantity/OData__OldID,2),"[$-en-US]£###.00")

I used Quantity/OData__OldID to just get a fraction to work with.

Capture.PNG

 

 

What am I inserting here?

OData_OldID? Just dropping it in like below doesn't work....

 

£

Text(ThisItem.OData__OldID/'Budget_spent_(£)',"[$-en-US]£####.00")

 

%

RoundDown(Value(ThisItem.OData__OldID/'Days_spent_(_x0025_)'*100,"###%"),1)

Hi @stumac_31,

Sorry for the confusion.  OData_OldID and Quantity were two numeric fields already in my database.  I arbitrarily used them to create a fraction that I could format to test whether my suggestions worked. Just replace 

ThisItem.Quantity/OData__OldID 

with the data value in your app.  

I don't have anything to divide....

 

 

v-xida-msft
Community Support
Community Support

Hi @stumac_31,

Based on the issue that you provided, I think the Text function could achieve your needs. 

If you want to include the symbol % behind the value, please take a try with the following formula:

Text(Value(ThisItem.'Days_spent_(_x0025_)')*100,"[$-en-US]###.00%")

If you want to include the symbol £  in front of the value, please take a try with the following formula:

Text(Value(ThisItem.'Budget_spent_(£)'),"[$-en-US]£ ##0.00")

More details about Text function, please check the following article:

Text function

 

Best regards,

Kris

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

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (64,317)