Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Help with modeling - duplicate values

Folks, need a help. I receive from a system the following table:

Engagement IDValeu USDStatus
12345100Active
12345200Active
12345-400Active
12345600Active
12345200Active

 

I need to transform it in something like this in a easy way using PBI

Engagement IDValeu USDStatus
12345700Active

 

I´ve been strugling to work with this data and I believe these duplicates fields are the reason. Any help?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

You can use group by in the edit queries, then advance and add multiple column(Screenshot below)

 Capture.PNGCapture.PNG

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

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])
)

Capture.PNG

 

 

 

 

 

 

 

Click HERE to access my PBIX file if needed.

Anonymous
Not applicable

You can use group by in the edit queries, then advance and add multiple column(Screenshot below)

 Capture.PNGCapture.PNG

mussaenda
Super User
Super User

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"

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.