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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
tmhazzazi11
Regular Visitor

change data type from decimal number to percentage

Hi All, 

 

I ran into an issue which is when I refresh data from an excel file, the data truned from percentage to decimal number, this not the issue I have, the issue is that I have a lot of data and when i go to edit query I can select all columns at one time see below:

, and then I can change datatype to percentage, but when i go back to visuals I found not change in the visuls data.

edit query.PNG

 

 

 

However, when I go to data table which is located at left hand of pbi interface, Please see below snapshots:

 

TABLE.png

 

i can then change the datatype to percentage, but the issuse is one at a time. How can I select all data or all columns at one time in this area and change the datatpe for all, or how to get edit query effective when I change datatype from there.

 

if there is a measure I can use to solve this issue please help 🙂

I wish that you get me 🙂

 

kind Regards

1 ACCEPTED SOLUTION
v-janeyg-msft
Community Support
Community Support

Hello, @tmhazzazi11 

 

Because in the data model of power bi, the percentage data type is not supported, it belongs to the formatting of the number type, so even if it is changed in the PQ, the effect is not visible.

vjaneygmsft_0-1626144576350.png

You can unpivot your data then change the type in desktop, or use the shortcut key ‘CTRL+A’ to select all columns, and then change all data types at once.

Like this:

vjaneygmsft_1-1626144989855.png

 

Best regards

Janey guo

Community Support Team _ Janey
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
v-janeyg-msft
Community Support
Community Support

Hello, @tmhazzazi11 

 

Because in the data model of power bi, the percentage data type is not supported, it belongs to the formatting of the number type, so even if it is changed in the PQ, the effect is not visible.

vjaneygmsft_0-1626144576350.png

You can unpivot your data then change the type in desktop, or use the shortcut key ‘CTRL+A’ to select all columns, and then change all data types at once.

Like this:

vjaneygmsft_1-1626144989855.png

 

Best regards

Janey guo

Community Support Team _ Janey
If this post helps, please consider accept as solution to help other members find it more quickly.
mahoneypat
Microsoft Employee
Microsoft Employee

You should be able to select all your columns in the query editor and convert them to percentage.  In any case, your columns look similar.  Have you considered unpivoting your data to make your analysis and visualization easier.

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.