How to force one-side of relationship to appear when there is no corresponding record on many side.
I have the following tables:
The measure Latest Sales correctly gives me the latest sum for each Sales Person:
Latest Sales =
VAR MaxKnownDate =
MAX ( Sales[DateOfSale] )
VAR SalesSummaryBase =
VAR SalesSummary =
SUM ( Sales[Amount] ),
ALL ( Sales[DateOfSale] ),
Sales[DateOfSale] <= MaxKnownDate
VAR Result =
SUMX(SalesSummary, [Latest Count])
Here's the result:
Sales Person Id Name Latest Sales
3 Joe $5
1 John $22
2 Mary $65
The Sales Person slicer shows all Sales Persons.
The sales person Susie does not appear in the report because there are no sales record for Susie. How can I force Susie to show up on the report under the Sales Person ID column with an amount of $ 0.00? How should modify my measure to achieve that?