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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
NeilTownsend76
Regular Visitor

Power BI creating multiple columns of nearly identical data (SharePoint table source issue)

I would really appreciate if someone in the community could point me in the right direction. I am trying to transform some data. The source is an online SharePoint list. On import in Power BI I select the “2.0 implementation”. One of the columns that I transform gets brought in as a table. When I expand it - I choose ‘Title’ only and it displays a persons name within the company (lets say Joe Smith”. If the record in Sharepoint has a 2nd name assigned (lets say Jane Smith) - Power BI adds an additional, nearly identical row with the exception of displaying Jane Smith’s name. Concatenating this data into a text string feels like it will not work as it cannot be used within the data model. Any suggestions on how to avoid Power BI creating all these extra rows?

4 REPLIES 4
Anonymous
Not applicable

Can't you just choose to expand multiple values to list, and then split the list into new columns?
Alternatively, before you expand the Title Column, you can add a RowCount column, like each Table.RowCount([Title])

 

Then another column

 

if RowCount > 1 then [Title]{1} else null

 

And then you can add final column

 

each [Title]{0}

--Nate

NeilTownsend76
Regular Visitor

Thanks so much for the reply. I hope I explained it correctly. This is what they SharePoint data looks like – and it uses a lookup to find names within the organization. Both pieces of data (in this case names) are important – the issue is the creating a second, nearly identical record in Power BI after you expand the table. I am not sure if your responses solve this? 

NeilTownsend76_0-1728398505854.png

 

Well, as I said - I would not see it as an issue, but rather as reality.

 

Whenever you are trying to flatten hierarchical data like JSON or your lookup column you need to make decisions. Either live with the "duplicates" or destroy information.

lbendlin
Super User
Super User

You can choose to

- not include these lookup columns  in you SharePoint List extract (they are very costly)

- only expand the first row  ( "{0}"  ) of these records

- expand the entire record because that's what the actual data is

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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