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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Need to divide multiple columns by 100 in Transform

Good Morning,

 

I have a spreadsheet that has many columns I need to divide by 100 after import so percents displays correctly.  Is there a way to do this in mass?

 

I wont let me use the Standard > Divide function when selecting multiple columns

 

I assume I can achieve this in Advanded Editor?

1 ACCEPTED SOLUTION
V-pazhen-msft
Community Support
Community Support

@Anonymous 

Add the following step in your advance editor. 

 #"/100"  = Table.TransformColumns(NameOfPreviousStep, List.Transform({"Column1", "Column2", "Column3"}, each {_, (inner) => inner / 100, type number}))   

 

See the following example divides the 3 columns by 100. 

div100.JPG

 


Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
V-pazhen-msft
Community Support
Community Support

@Anonymous 

Add the following step in your advance editor. 

 #"/100"  = Table.TransformColumns(NameOfPreviousStep, List.Transform({"Column1", "Column2", "Column3"}, each {_, (inner) => inner / 100, type number}))   

 

See the following example divides the 3 columns by 100. 

div100.JPG

 


Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

This is what I was looking for. Thank you.

amitchandak
Super User
Super User

@Anonymous ,Can you share sample data and sample output in table format?

Anonymous
Not applicable

I am getting a post flooding error- I will try again a few

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.