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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Divide Multiple Columns in Power Query by 100 in mass to be able to display % correctly.

Trying to figure out how I can select multple columns at once in power query and divide by 100 to when i convert the columns to percentages, they display correctly. 

 

Thank you!

 

Markets

PeriodsProducts$ / $MM ACV % Chg YA$ / TDP % Chg YA$ % Chg YAAny Disp EQ Price % Chg YA
West MassYTD YA - 9 w/e 02/29/20G-17.25320.54-17.04115.306
West MassYTD YA - 9 w/e 02/29/20F4.2977.7636.407-37.673
West MassYTD YA - 9 w/e 02/29/20E6.515-14.4994.34910.801
West MassYTD YA - 9 w/e 02/29/20D-1.55714.637-2.717-30.893
West MassYTD YA - 9 w/e 02/29/20A18.6393.86716.0760.765
West MassYTD YA - 9 w/e 02/29/20B4.1464.4175.506-88.72
West MassYTD YA - 9 w/e 02/29/20C5.522-0.7987.79168.067
1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

Hi @Anonymous 

Don't know how to do this without resorting to some complicated hand coding of M.

You'd be as well of to select the columns one by one in the editor then from Transform-> Standard select Divide, and enter 100.

div1.png

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

3 REPLIES 3
steverugi
Frequent Visitor

1 select columns you want to divide
2 use from the ribbon any available transformation (like rounding) and check the M formula text
3 replace 'each Number.Round(_, 2)' with 'each _/100' like the following:
= Table.TransformColumns(#"Replaced Value",{{"11:01:00", each _/100, type number}, {"11:01:00", each _*100, type number}, {"blinding ", each _/100, type number}})

PhilipTreacy
Super User
Super User

Hi @Anonymous 

Don't know how to do this without resorting to some complicated hand coding of M.

You'd be as well of to select the columns one by one in the editor then from Transform-> Standard select Divide, and enter 100.

div1.png

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Hi @PhilipTreacy. , 

17093142384026781353060846747720.jpg

I have to divide numbers with 2 digits by 100 (Example - 25) and with 1 digit by 10 (Example - 5) in same column. I have attached a img for reference.

Please do you have any way out? 

 

Thanks & Regards

Kishlay Kumar

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.