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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.