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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

How to change data type of columns within groups

Hello,

 

I have created grouping based on two columns and I want to do some tranformation on the group ( like I have to split that column and then sort and then merge within the group) 

I am facing issue while sorting ( when I sort the numbers instaed of 1,2,3...10, I am getting 1,10,2,3,4) It's because of datatype as I have alphanumeric data type for this column. I changed it to integer within group but when I expand the group,datatype is again getting changed to alphanumeric.

Can someone please help on this?

 

Thanks,

Shweta

 

1 REPLY 1
Mahesh0016
Super User
Super User

@Anonymous  I think you need to change in M code 

Mahesh0016_0-1686910449642.png

 

= Table.Group(#"Changed Type", {"Name"}, {{"By Name", each List.Sum([No]), type nullable text}})

@Anonymous I hope this helps you!THANK YOU!!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.