Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

Expression.Error: We cannot convert the value "" to type List.

Hello,

 

I'm a newcomer to power query and i'm hitting a bit of a wall that i cannot find help for online.

 

I am trying to create a table from a set of 9 columns that contain number data, however the formula i am running is producing error messages in the custom column i create:

 

Expression.Error: We cannot convert the value 51539.735160680015 to type List.
Details:
Value=51539.73516
Type=Type

 

The formula i am using is the below:

 

Table.FromColumns({[Online Total Market LY],[Online Total Market CY],[#"Online Total Market YoY%"],[BT Online LY],[BT Online CY],[#"BT Online YoY%"],[BT Online Share LY],[BT Online Share CY],[#"BT Online Share YoY%"]})

 

The below screenshot shows the error message along with the formula & example data that needs to be included:

 

 

Am i missing something simple?

 

2 Replies

  • Hi Anonymous ,

    Table.FromColumns requires a list as it's first parameter https://docs.microsoft.com/en-us/powerquery-m/table-fromcolumns

    In this case it should be a list of columns from another table but somewhere in your formula you have values which is why you are getting this error.

    I notice that some of the column names in your formula begin #" , are these actually table columns? Can you confirm all the columns you are feeding into Table.FromColumsn exist because I can see the column named BT Online Share YOY% but in the formula the name is #"BT Online Share YOY%".

    Did you select all the columns using the GUI?

    Phil


    If I answered your question please mark my post as the solution.

    If my answer helped solve your problem, give it a kudos by clicking on the Thumbs Up.

  • Jimmy801's avatar
    Jimmy801
    Icon for Community Champion rankCommunity Champion

    Hello Anonymous 

     

    I see that you are using this function in a new column. So as long you cell value are not lists, you are referencing here a scalar value, but you need lists. What I don't get... why you are trying to create a table out of table, using Table.FromColumns? You should just remove columns or select columns from your current table.

     

    If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
    Kudoes are nice too

    Have fun

    Jimmy