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.
I could use GroupBy but I only want to Combine data with column that has particular value? I want to only combine rows with value B. Off course there are other columns as well.
Value A
Value A
Value B
Value B
Value B
Value B
Value C
Value C
Value C
Solved! Go to Solution.
Could you:
Make 2 reference copies of the initial query.
Filter 1 to just include B rows and the other to not include B rows.
Apply group by to the query with just B rows.
Append the queries back together.
Mark all the helper stages as do not load.
Here's one way to do it in the query editor. To see how it works, just create a blank query, open the Advanced Editor and replace the text there with the M code below.
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WCkvMKU1VcFSK1YlWAhM4BJyoIOBMjEAsAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Value = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Value", type text}}),
Split = Table.SelectRows(#"Changed Type", each ([Value] <> "")),
#"Filtered Rows" = Table.SelectRows(Split, each ([Value] = "Value B")),
#"Grouped Rows" = Table.Group(#"Filtered Rows", {"Value"}, {{"Count", each Table.RowCount(_), Int64.Type}}),
Custom1 = Split,
#"Filtered Rows1" = Table.SelectRows(Custom1, each ([Value] <> "Value B")),
#"Appended Query" = Table.Combine({#"Filtered Rows1", #"Grouped Rows"})
in
#"Appended Query"
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Could you:
Make 2 reference copies of the initial query.
Filter 1 to just include B rows and the other to not include B rows.
Apply group by to the query with just B rows.
Append the queries back together.
Mark all the helper stages as do not load.
Great clever IDEA!! thank you!!
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 |
|---|---|
| 26 | |
| 25 | |
| 24 | |
| 21 | |
| 14 |
| User | Count |
|---|---|
| 53 | |
| 47 | |
| 23 | |
| 18 | |
| 18 |