We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi there,
I am trying to split a column by values from a list. I got the list ready and now wonder how I could reference the values from this list in the split column function. I don't want to manually update the position as the number could change. Tried multiple ways and searched online, but no luck.
Thank you so much!
If you split it in Rows not in columns, then you just need to specify the PositionList.
Select your columns and while splitting choose Rows in place of Column under Advanced. Put any dummy value say 3 as position. Once split done, in formula bar, replace this 3 with name PositionList.
You will get this kind of split
= Table.ExpandListColumn(Table.TransformColumns(Source, {{"Text", Splitter.SplitTextByPositions(PositionList)}}), "Text")
We can make formula for vertical split as well but in my view this much complexity is not needed and also for Power BI, it is longer table rather than wider table which is needed.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 10 | |
| 8 | |
| 7 | |
| 7 | |
| 5 |