Salesforce Certified CRM Analytics and Einstein Discovery Consultant free question 8 / 10 · Domain 2: Data Layer
After a left join, the total opportunity amount in a dashboard is too high because some opportunities appear twice. Which fix does the documentation suggest?
- Add an Aggregate node that sums the amount after the join
- Change the left join to a right join so that duplicates fall on the other side
- Convert the amount column to a dimension before the join
- Replace the join with a lookup to prevent the duplicate records
Show the answer and explanation
Answer: D
Why this is correct
A join creates a separate record for each match when multiple rows match. A left join duplicates an opportunity that has several matches on the right, and the repeated amount is counted twice in totals. The page says to avoid double counting measures when aggregating after a join, and the way to prevent duplicates is to use a lookup instead of a join.
Why the other options are wrong
"Change the left join to a right join so that duplicates fall on the other side" … A right join includes all matched rows of the left side too, so duplicates would remain.
"Add an Aggregate node that sums the amount after the join" … Summing duplicated rows repeats the amount. The page warns about double counting measures when aggregating records from a join.
"Convert the amount column to a dimension before the join" … Changing the column type does not change how many rows a join produces.
Key points
If a join must stay, add more key fields so that the keys become more unique. Left, right, inner and full outer joins include the matched rows of both sides, which is why duplicates appear.