Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
Folks, need a help. I receive from a system the following table:
| Engagement ID | Valeu USD | Status |
| 12345 | 100 | Active |
| 12345 | 200 | Active |
| 12345 | -400 | Active |
| 12345 | 600 | Active |
| 12345 | 200 | Active |
I need to transform it in something like this in a easy way using PBI
| Engagement ID | Valeu USD | Status |
| 12345 | 700 | Active |
I´ve been strugling to work with this data and I believe these duplicates fields are the reason. Any help?
Solved! Go to Solution.
You can use group by in the edit queries, then advance and add multiple column(Screenshot below)
Hey @Anonymous
You can use the following DAX expression once the data has been imported into PBI:Consolidated Table =
SUMMARIZE(
EngagementID, EngagementID[Status],
EngagementID[Engagement ID],
"Value USD", SUM(EngagementID[Value USD])
)
Click HERE to access my PBIX file if needed.
You can use group by in the edit queries, then advance and add multiple column(Screenshot below)
I believe this can be achieved using Group By on power query.
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjQyNjFV0lEyNDAAko7JJZllqUqxOggJI1wSuia4ZMyIMysWAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [#"Engagement ID" = _t, #"Valeu USD" = _t, Status = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Engagement ID", Int64.Type}, {"Valeu USD", Int64.Type}, {"Status", type text}}),
#"Grouped Rows" = Table.Group(#"Changed Type", {"Engagement ID", "Status"}, {{"Value USD", each List.Sum([Valeu USD]), type number}})
in
#"Grouped Rows"
| User | Count |
|---|---|
| 24 | |
| 22 | |
| 22 | |
| 21 | |
| 13 |
| User | Count |
|---|---|
| 66 | |
| 56 | |
| 45 | |
| 45 | |
| 30 |