Forum Discussion
Splitting Column values
- 8 months ago
Hi dommyw277 ,
Thanks for the screenshot that really helps. As per my guess, the Invalid identifier error is coming from the way the column name Inc/SR is being referenced. Because the column name contains a slash (/), Power Query requires the #"" format.
So anywhere you have- [Inc/SR]
please change it to - [#"Inc/SR"]And in your filter step
each [#"Inc/SR"] <> null and [#"Inc/SR"] <> ""Once the column is referenced with [#"...."] , the syntax error should be resolved.
Hope this helps please give it a try. If anything still comes up, feel free to share another screenshot and we can take a look.
In Power Query Editor, add an Index column, then use a custom function to split grouped values into separate Category/Item rows.
Solution Steps
Add Index: Select column > Add Column > Index Column (from 0).
Custom Column with M formula:
Expand List: Expand the new list column to rows (Attribute=Category, Value=Item).
Advanced M Code (Advanced Editor)
Replace your query step with:
Filter nulls, remove Index.