This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowThe Fabric community is upgrading! Read all of the details including the timeline and what you can expect. Learn more
Hi all,
I know that we cannot implement split into rows in directquery mode, but is there a workaround i can follow?
The examples i found is only split into column, not rows. if anyone can find any artcle or used to do it, appreciate if you can share the article here.
Basically, i just want to split these by delimiter ";".
e.g:
1 row = A;B;C
result:
3 rows
A
B
C
hi, @kilala
try below code in power query
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMrQ2sjZWio0FAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [row = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"row", type text}}),
#"Split Column by Delimiter" = Table.SplitColumn(#"Changed Type", "row", Splitter.SplitTextByDelimiter(";", QuoteStyle.Csv), {"row.1", "row.2", "row.3"}),
#"Changed Type1" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"row.1", Int64.Type}, {"row.2", Int64.Type}, {"row.3", Int64.Type}}),
#"Transposed Table" = Table.Transpose(#"Changed Type1")
in
#"Transposed Table"
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
| User | Count |
|---|---|
| 24 | |
| 22 | |
| 20 | |
| 18 | |
| 14 |
| User | Count |
|---|---|
| 44 | |
| 37 | |
| 23 | |
| 21 | |
| 20 |