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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Reformat Field to Percent

hi

 

is it possible to reformat a field to be a percent, even if the value is alreday an integer number?

for example, if the data under 'percent' is 98, 97, 22, etc, and these values are actually the percentage values, how can i change this information to indicate percent, as changing the format to percent multiplies all of them by 100 and then turns into percent, i.e. 9800%, 9700%, 2200%. One option would be to make a new column and divide these values by 100 prior to formatting to percent but is there an easier way to do this?

 

br,

dave

1 ACCEPTED SOLUTION

Hi @Anonymous,

 

I get the whole idea now. If you don't want to add a new column, you have to divide the values by 100 first. 

1. Open Query Editor, apply "Replace values" once. Whatever the values are. We only need this step to generate some codes for us.

Reformat Field to Percent1.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2. Open "Advanced Editor". Replace the blue part with this:

each [Column1], each [Column1] / 100

Reformat Field to Percent2.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3. Change the Format to "Percentage".

Reformat Field to Percent3.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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.

View solution in original post

6 REPLIES 6
v-jiascu-msft
Microsoft Employee
Microsoft Employee

@Anonymous,

 

Hi Dave,

 

I'm a little confused. Why not change the format directly?Reformat Field to Percent.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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.
Anonymous
Not applicable

v-jiascu-msft

Don't think you fully understand the question, changing to the percent format is simple but unfortunately the raw data is already showing as a percent, this was explained in the original post in better detail. If I just change the column to format percent i get 9800%, 5000%, even when I need it to read 98% and 50%

Hi @Anonymous,

 

I get the whole idea now. If you don't want to add a new column, you have to divide the values by 100 first. 

1. Open Query Editor, apply "Replace values" once. Whatever the values are. We only need this step to generate some codes for us.

Reformat Field to Percent1.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2. Open "Advanced Editor". Replace the blue part with this:

each [Column1], each [Column1] / 100

Reformat Field to Percent2.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3. Change the Format to "Percentage".

Reformat Field to Percent3.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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.
Anonymous
Not applicable

Thats brilliant Dale, thank you

Anonymous
Not applicable

Hi Dale,

When you say original query do you mean the query editor?
mow700
Resolver I
Resolver I

I would create a new column and probably use the FORMAT() function in conjunction with the calculation.

New Column = FORMAT([Original Column]/100,"Percent")

You could always transform this column in the original query as well.  If you never need this data as an int that's likely the best way to handle this.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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