Hi All,
I am struggling to calculate sum of the values of column based on a condition.
Table3
- Order Id
- Total Defect Products
- DateTime
So, I get data on number defective products that are identified on a particular Order ID. However, for some order Ids more defective products are identified at later point in time and that is recorded by adding a new row with the same Order ID and updated Total defect products. This causes Duplication of the Order ID, and when I calculate total defective products the number are higher than what it should be. For example
Order ID 20230001537 first had 1 defective product , it was then updated to 2 . Now, when i am calculating the sum, it should only take 2 and ignore 1.
I created a calculated column - dups to give me all the duplicate Order Ids.
latest.pbix (2.7 MB)