So I have data in a table I labelled VesselLoadDischarge that breaks down the number of containers by Discharge and Load per Vessel as shown in the image below:
I am trying to add a new column (say called SummedUnitCount) that sums the "UnitCount" column by VesselVisitCode column; ie: the first two rows would each have 642 (the sum of each row from the UnitCount column with VesselVisitCode = SCB3129 which is 377 +265), the next two rows would have 533 each (the sum of each row from the UnitCount column with VesselVisitCode = ALO3372 which is 304 + 229) and so on.
Note: It is not guaranteed that every entry in VesselVisitCode occurs twice, however, it is guaranteed that there can't be more than two entries per VesselVisitCode
Appreciate your assistance.
Solved! Go to Solution.
Thank you Phil! That worked exactly as I was hoping and expecting it to.
I appreciate your time to assist me here and thank you for the sample .pbix file as well.