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
Lee123
Frequent Visitor

Handling multiple choice sharepoint columns which are not mandatory

Hi All

I'm trying to get some multiple choice sharepoint columns into powerbi and I can't see what the best way to do that is. They turn up in powerquery showing as 'list' but the extract values button does not appear on the column unless I filter out the blanks which I do not want to do as it filters out many otherwise good rows.

 

What shall I do? I'm using the v2 sharepoint connector.

1 ACCEPTED SOLUTION
edhans
Super User
Super User

It depends on what you want to do with it. For example, I've mocked this up in Excel (ignore that I do have an expand button)

edhans_0-1622689620141.png

You could extract the choices and put in comma delimited list, like so in a Custom Column - use this formula:

 

if Value.Is([List], type list) then Text.Combine([List], ", ")

 

That looks at my List column, and if there is a list in there, combine the values with a comma delimiter.

edhans_1-1622689868152.png

Now you can separate those out with the Transform, Split Column feature.

 

 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

7 REPLIES 7
edhans
Super User
Super User

It depends on what you want to do with it. For example, I've mocked this up in Excel (ignore that I do have an expand button)

edhans_0-1622689620141.png

You could extract the choices and put in comma delimited list, like so in a Custom Column - use this formula:

 

if Value.Is([List], type list) then Text.Combine([List], ", ")

 

That looks at my List column, and if there is a list in there, combine the values with a comma delimiter.

edhans_1-1622689868152.png

Now you can separate those out with the Transform, Split Column feature.

 

 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Hi @edhans ! Thank you for your solution, where in PowerBI should this code be added ? Is the only way to create a new column ? Could it be possible to only transform the column with the list contents ?

I don't know what you mean by transforming with the list contents. What are you trying to do @santiago-a-n 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

@Lee123 - did this help?



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting
Lee123
Frequent Visitor

Thanks- yes right idea, I did need to add else "NotRecorded" to handle the blanks.

Great! Glad I was able to help. Can you mark my response as the solution so others know that it works and this thread can be shown to be solved?

Thanks!



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

I am having the same issue in power query my data source comes from a sharepoint list and one of the columns is a multi select choice column, which allows the user to select 1 or more optiosn from the list in the column choices.
When trying to being this data into power query I get a mashup error that it cannot convert values of type list to type text.
Unlike the single select column I am not able to extract values to a table and table to a record.

 

Can you help?
.Error: Expression.Error: We cannot convert a value of type List to type Text. Details: Reason = Expression.Error;Value

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.

Top Solution Authors