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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi.
I have a survey input table where, evetually, the same customers will submit the most recent count of a required value. I'm able to filter out previous submissions to display the most recent count based on MAX/ last date. (Using either below measures). However, i'd like the total column to also sum up the values for the most recent MAX/;last date. The totals row is showing the most recent MAX value as the total (9) in my table view, but i'd like to see (31) if possible. Not sure if i'm doing this the correct way. Help?
Solved! Go to Solution.
@mcinnisbr adding a sumx function to iterate the fields in the rows.
try this code
Lastestdate =
SUMX(VALUES('table'[CustomerName]),
VAR _MaxDate=CALCULATE(MAX('table'[Start time] ))
RETURN
CALCULATE(
SUM('table' [customer current count]),
FILTER ( ALL ( 'table' ), 'table'[Start time] = _MaxDate )))
@mcinnisbr adding a sumx function to iterate the fields in the rows.
try this code
Lastestdate =
SUMX(VALUES('table'[CustomerName]),
VAR _MaxDate=CALCULATE(MAX('table'[Start time] ))
RETURN
CALCULATE(
SUM('table' [customer current count]),
FILTER ( ALL ( 'table' ), 'table'[Start time] = _MaxDate )))
Ask a question to the internet and the internet comes through. Thanks friend, you're brilliant.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
12 | |
11 | |
10 | |
9 | |
8 |