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 need your help to sum the values for the last date in the selected months, at the level of each store.
1. I have a month slicer - where I have selected 3 months - Aug, Sep, Oct
Below is the table based on filters:
store_name | session_date | task_name | Total |
STORE 1 | 13-Sep | MS | 15 |
STORE 1 | 11-Oct | MS | 75 |
STORE 2 | 31-Aug | MS | 47 |
STORE 2 | 21-Sep | MS | 69 |
STORE 2 | 05-Oct | MS | 42 |
248 |
From the above table I need to extract only the last session for each store, with the total, like below.
store_name | session_date | task_name | Total |
STORE 1 | 11-Oct | MS | 75 |
STORE 2 | 05-Oct | MS | 42 |
So far I have:
1. A measure to calculate the MaxVisit:
Somehow it's working, it does filter, but only If in the table I have the store name on rows, otherwise it displays nothing.
Solved! Go to Solution.
Your measure won't work when there are multiple stores in the local filter context because SELECTEDVALUE(ExportData[store_name]) will return a blank when there isn't a single value.
One way around this is to iterate over each store individually like this:
SUMX ( VALUES ( ExportData[store_name] ), [LastDateFacings] )
Your measure won't work when there are multiple stores in the local filter context because SELECTEDVALUE(ExportData[store_name]) will return a blank when there isn't a single value.
One way around this is to iterate over each store individually like this:
SUMX ( VALUES ( ExportData[store_name] ), [LastDateFacings] )
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.