cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
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
Highlighted
Super User III
Super User III

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,"###%"

 

Highlighted

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

Highlighted

%

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

 

 

Highlighted

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)

Highlighted

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.  

Highlighted

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

 

 

Highlighted
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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (1,642)