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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
WinterMist
Impactful Individual
Impactful Individual

How To Import Comma Delimited Values Within a Single Column

Hello Community - Could someone advise me how to import comma delimited values within a single column?

 

In the past, this just worked without taking any specific steps.

But now, it's behaving differently.

 

Excel column SR_RejectionReasonID contains comma delimited values.

 

WinterMist_0-1731435016791.png

 

When importing from Excel into Power BI, the preview looks as follows.

 

 

WinterMist_2-1731445954462.png

 

In Power Query, the default data type of SR_RejectionReasonID = Decimal Number.

 

WinterMist_3-1731446328138.png

 

Changing the data type to Text brings all the numbers back, but without the comma delimiter.

 

WinterMist_4-1731446615747.png

 

 

WinterMist_5-1731446902642.png

 

Can someone advise how to get the data in Power Query to appear exactly as it does in Excel (numbers with delimiter)?

 

WinterMist_0-1731435016791.png

 

Regards,

Nathan

1 ACCEPTED SOLUTION
SamWiseOwl
Community Champion
Community Champion

Hi @WinterMist 

When PBI imports the data and after some steps it auto adds a Change Type step.

SamWiseOwl_0-1731450792848.png

You could delete this step to prevent it assigning the numeric data type.

Or click on the step when you change the datatype and see this message:

SamWiseOwl_1-1731450861081.png

Choose Replace current to ensure that this column was ALWAYS text.

Not converted to number and back to text.

 

Alternitvely modify the M of the changed type step.

SamWiseOwl_2-1731450928363.png

 

Change this from type Number to type text.

 

My guess is that your data has changed. The data type is based on the first 1000 rows, in the past maybe the first 1000 only had numbers.

 


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

View solution in original post

1 REPLY 1
SamWiseOwl
Community Champion
Community Champion

Hi @WinterMist 

When PBI imports the data and after some steps it auto adds a Change Type step.

SamWiseOwl_0-1731450792848.png

You could delete this step to prevent it assigning the numeric data type.

Or click on the step when you change the datatype and see this message:

SamWiseOwl_1-1731450861081.png

Choose Replace current to ensure that this column was ALWAYS text.

Not converted to number and back to text.

 

Alternitvely modify the M of the changed type step.

SamWiseOwl_2-1731450928363.png

 

Change this from type Number to type text.

 

My guess is that your data has changed. The data type is based on the first 1000 rows, in the past maybe the first 1000 only had numbers.

 


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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