Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi,
I have the following Source table,
| GUID | Checked by A1-1 | Pass or Fail A1-1 | Checked by B1-1 | Pass or Fail B1-1 |
| 0001 | Name A | Pass | Name C | Fail |
| 0002 | Name B | Fail | Name A | Fail |
, which I want to convert it in the following format -
| GUID | Asset | Checked by | Pass or Fail |
| 0001 | A1-1 | Name A | Pass |
| 0001 | B1-1 | Name C | Fail |
| 0002 | A1-1 | Name B | Fail |
| 0002 | B1-1 | Name A | Fail |
I want to do this in Query Editor and should be dynamic in nature. Both GUIDS, Asset, and Fields may be added later on. In my actual dataset, there 500+ columns, and any query I do takes forever to refresh.
I am able to create a dynamic table or lists from the Column names like below, but not sure if that's helpful. Maybe cross join it somehow with the Source query?
| Checked by A1-1 | Checked by | A1-1 |
| Pass or Fail A1-1 | Pass or Fail | A1-1 |
| Checked by B1-1 | Checked by | B1-1 |
| Pass or Fail B1-1 | Pass or Fail | B1-1 |
My ultimate goal is to normalize the fact table with 500+ columns into dimension tables somehow, and the request format may help. Still kind of exploring various methodologies. Any ideas on how this could be achieved in an efficient manner?
Appreciate the assistance!
Solved! Go to Solution.
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjAwMFTSUfJLzE1VcAQyAhKLi2F8ZyDDLTEzRylWB6zQCCbhBJNA0ghRGAsA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [GUID = _t, #"Checked by A1-1" = _t, #"Pass or Fail A1-1" = _t, #"Checked by B1-1" = _t, #"Pass or Fail B1-1" = _t]),
Custom1 = Table.Combine(
Table.TransformRows(
Source,
each let
t=Table.SplitColumn(
Table.Skip(Record.ToTable(_)),
"Name",
(x)=>let
a=Text.BeforeDelimiter(x," ",{0,1}),
b=Text.AfterDelimiter(x," ",{0,1})
in {[GUID],a,b},
{"GUID","x","Assets"}
)
in Table.Pivot(t,List.Distinct(t[x]),"x","Value")
)
)
in
Custom1
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjAwMFTSUfJLzE1VcAQyAhKLi2F8ZyDDLTEzRylWB6zQCCbhBJNA0ghRGAsA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [GUID = _t, #"Checked by A1-1" = _t, #"Pass or Fail A1-1" = _t, #"Checked by B1-1" = _t, #"Pass or Fail B1-1" = _t]),
Custom1 = Table.Combine(
Table.TransformRows(
Source,
each let
t=Table.SplitColumn(
Table.Skip(Record.ToTable(_)),
"Name",
(x)=>let
a=Text.BeforeDelimiter(x," ",{0,1}),
b=Text.AfterDelimiter(x," ",{0,1})
in {[GUID],a,b},
{"GUID","x","Assets"}
)
in Table.Pivot(t,List.Distinct(t[x]),"x","Value")
)
)
in
Custom1
Check out the April 2026 Power BI update to learn about new features.
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.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 4 |