Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
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] )
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.