Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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 =
SUMMARIZE (
'SalesPerson'
,'SalesPerson'[Name]
)
VAR SalesSummary =
CALCULATETABLE (
ADDCOLUMNS (
SalesSummaryBase,
"Latest Count",
CALCULATE (
SUM ( Sales[Amount] ),
LASTNONBLANK (
'Date'[Date],
COUNTROWS(RELATEDTABLE(Sales))
)
)
)
,FILTER (
ALL ( Sales[DateOfSale] ),
Sales[DateOfSale] <= MaxKnownDate
)
)
VAR Result =
SUMX(SalesSummary, [Latest Count])
RETURN
Result
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?
Solved! Go to Solution.
You can try adding zero to measure - which turns blank into 0?
....
Return
Result + 0
You can try adding zero to measure - which turns blank into 0?
....
Return
Result + 0
Brialliant! Thank you very much.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 6 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 18 | |
| 14 | |
| 14 |