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
Super User

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 Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,512)