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 nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
My table has around 500K rows with the following structure:
I want to merge the Address column.
Can anyone help?
Thanks!
Solved! Go to Solution.
Try this in Power Query. The Source step will be your data source. I used a comma delimiter in the GroupAddress step; you can use any delimiter.
let
Source = Table.FromRows(
Json.Document(
Binary.Decompress(
Binary.FromText(
"i45WMlTSUXJ0cgaShgYGSrE60UpApourG5CE8dw9PGE8IyDDy9sHpNoUrtrXzx9JdUBgEIxnDGQEh4QCSUtLS5h8WEQkkuqoqCgwLxYA",
BinaryEncoding.Base64
),
Compression.Deflate
)
),
let
_t = ((type nullable text) meta [Serialized.Text = true])
in
type table [Id = _t, Address = _t, Sales = _t]
),
ChangeType = Table.TransformColumnTypes(
Source,
{{"Id", Int64.Type}, {"Address", type text}, {"Sales", Int64.Type}}
),
FillDownId = Table.FillDown(ChangeType, {"Id"}),
GroupAddress = Table.Group(
FillDownId,
{"Id"},
{{"Combined Address", each Text.Combine([Address], ", "), type text}}
),
TableAmount = Table.SelectRows(
Table.SelectColumns(ChangeType, {"Id", "Sales"}),
each ([Id] <> null)
),
TableJoin = Table.NestedJoin(
TableAmount,
{"Id"},
GroupAddress,
{"Id"},
"TableAddress",
JoinKind.Inner
),
ExpandTable = Table.ExpandTableColumn(
TableJoin,
"TableAddress",
{"Combined Address"},
{"Combined Address"}
)
in
ExpandTable
Proud to be a Super User!
@DataInsights not trying to step on your toes, but in this solution the Join can be avoided altogther and this can optimize performnace dramatically on a large tbl
let
Source = Table.FromRows(
Json.Document(
Binary.Decompress(
Binary.FromText(
"i45WMlTSUXJ0cgaShgYGSrE60UpApourG5CE8dw9PGE8IyDDy9sHpNoUrtrXzx9JdUBgEIxnDGQEh4QCSUtLS5h8WEQkkuqoqCgwLxYA",
BinaryEncoding.Base64
),
Compression.Deflate
)
),
let
_t = ((type nullable text) meta [Serialized.Text = true])
in
type table [Id = _t, Address = _t, Sales = _t]
),
ChangeType = Table.TransformColumnTypes(
Source,
{{"Id", Int64.Type}, {"Address", type text}, {"Sales", Int64.Type}}
),
FillDownId = Table.FillDown(ChangeType, {"Id"}),
GroupAddress = Table.Group(
FillDownId,
{"Id"},
{{"Combined Address", each Text.Combine([Address], ", "), type text},{"max", each List.Max([Sales]), type nullable number}}
)
in
GroupAddress
@DataInsights not trying to step on your toes, but in this solution the Join can be avoided altogther and this can optimize performnace dramatically on a large tbl
let
Source = Table.FromRows(
Json.Document(
Binary.Decompress(
Binary.FromText(
"i45WMlTSUXJ0cgaShgYGSrE60UpApourG5CE8dw9PGE8IyDDy9sHpNoUrtrXzx9JdUBgEIxnDGQEh4QCSUtLS5h8WEQkkuqoqCgwLxYA",
BinaryEncoding.Base64
),
Compression.Deflate
)
),
let
_t = ((type nullable text) meta [Serialized.Text = true])
in
type table [Id = _t, Address = _t, Sales = _t]
),
ChangeType = Table.TransformColumnTypes(
Source,
{{"Id", Int64.Type}, {"Address", type text}, {"Sales", Int64.Type}}
),
FillDownId = Table.FillDown(ChangeType, {"Id"}),
GroupAddress = Table.Group(
FillDownId,
{"Id"},
{{"Combined Address", each Text.Combine([Address], ", "), type text},{"max", each List.Max([Sales]), type nullable number}}
)
in
GroupAddress
I like your solution. Thanks for sharing! 🙂
Proud to be a Super User!
Try this in Power Query. The Source step will be your data source. I used a comma delimiter in the GroupAddress step; you can use any delimiter.
let
Source = Table.FromRows(
Json.Document(
Binary.Decompress(
Binary.FromText(
"i45WMlTSUXJ0cgaShgYGSrE60UpApourG5CE8dw9PGE8IyDDy9sHpNoUrtrXzx9JdUBgEIxnDGQEh4QCSUtLS5h8WEQkkuqoqCgwLxYA",
BinaryEncoding.Base64
),
Compression.Deflate
)
),
let
_t = ((type nullable text) meta [Serialized.Text = true])
in
type table [Id = _t, Address = _t, Sales = _t]
),
ChangeType = Table.TransformColumnTypes(
Source,
{{"Id", Int64.Type}, {"Address", type text}, {"Sales", Int64.Type}}
),
FillDownId = Table.FillDown(ChangeType, {"Id"}),
GroupAddress = Table.Group(
FillDownId,
{"Id"},
{{"Combined Address", each Text.Combine([Address], ", "), type text}}
),
TableAmount = Table.SelectRows(
Table.SelectColumns(ChangeType, {"Id", "Sales"}),
each ([Id] <> null)
),
TableJoin = Table.NestedJoin(
TableAmount,
{"Id"},
GroupAddress,
{"Id"},
"TableAddress",
JoinKind.Inner
),
ExpandTable = Table.ExpandTableColumn(
TableJoin,
"TableAddress",
{"Combined Address"},
{"Combined Address"}
)
in
ExpandTable
Proud to be a Super User!
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 31 | |
| 25 | |
| 25 | |
| 22 | |
| 14 |
| User | Count |
|---|---|
| 61 | |
| 49 | |
| 25 | |
| 20 | |
| 20 |