Forum Discussion

CMC's avatar
CMC
Helper I
4 years ago
Solved

Extract List to new Column

I'm pulling some data from Sharepoint Lists using a Dropdown, when the data come into Power BI it looks like the below, whats the easiest way of creating a new Column, I need all of the data , e.g. Choice 1, Choice 2, Choice 3

 

 

  • Just leave code part. I think Extract values part will be very easy for you (it will generated required code automatically)

    click the doubled edge arrow and Extract values.

    Choose custom and then select Concatenate using special characters - Insert Special Characters - Select Line Feed - OK

15 Replies

  • Vijay_A_Verma's avatar
    Vijay_A_Verma
    Most Valuable Professional

    Simplest way is to click double edged arrow at the top and extract the data into a new column which will have combined text. Then you can split the column.

    • CMC's avatar
      CMC
      Helper I

      That will work but the issue is if you update the DropDown value in Sharepoint, e.g. Choice 4 it creates another value which BI doesn't know anything about..  So ideally its a new column with all the data

  • I can convert the list to  a table but that then over writes all of the data in the query and only the table is viewable.  I could duplicate it then create the table but then the relationships are lost.  So if the Dropdown Column list can be converted into  a new column that is the best solution.

    • Vijay_A_Verma's avatar
      Vijay_A_Verma
      Most Valuable Professional

      So when you have a list containing {"a","b","c"} and when you extract it to a column, it comes as a,b,c in a single column. You need not split it.

      But I think I am not able to understand the exact problem. If you can tell me by taking an example of a list and what output do you need, I will be able to help out.

      • CMC's avatar
        CMC
        Helper I

        When I do the extract the column is updated to reflect:

         

        Choice 2Choice3

         

        I need the column to show

         

        Choice 2

        Choice 3