I have multiple columns with SharePoint lists and want to dynamically expand the list. Unfortunately these are sensitive data so I am unable to share but I can explain.
My data has 2 major columns with list that are lookup fields selected per the complaint bases and issues submitted. For example the bases column has the following lookup fields; Sex, Race, Disability etc. These constitutes the list for each of the complaint.
I want to expand the list dynamically so I can visualize the bases and issues column.
In attempting the solution I added a new custom column by using the following M-query and expanded
" Table.FromColumns({[Bases], [Issues]})"
but got errors (We cannot convert the value null to type list).
So I replaced the nulls with blanks but still got the errors.
Thanks for taking the trouble to take on this am humbled. While this solves the error problem it does not expand the 2 columns but rather combines the 2 columns into one. One pair of curly bracket gives the 2 columns you can expand to, however 2 pair curIy bracket gives one combined column. I want to maintain while expanding the 2 columns all at once, instead of expanding the column one at a time.
David, you described the error you have and getting rid of the error doesn’t make you happy.
No need to disclose your sensitive data, but a small dummy data set and/or mock up screenshots illustrating what you have and what you want to achieve might be helpful.
Mock up screenshot.docx (172.3 KB)
Have attached a mock up screenshot. the highlighted columns without errors for all rows and that is expandable to 2 columns is what is desired.
Expand Column error.docx (184.5 KB)
I replaced the nulls with list {} but still error persist. Please see attached screen shot and let me know if I miss anything in your instructions. Thank you
Thank you I did not enter with a quote when I replaced the null value with {} . It was entered automatically by power query. Had to examine the output code in the editor and observe the issue you raised. Upon removal in the editor, issue was fixed
@Mathias thank you for your patient and commitment. Issue is now resolved. Am new here is there a resource that goes more indept on how to prepare sharepoint list data for visualization. I will like to explore further into how others have approached similar situation.