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!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
Hi, I have the below table. What I want to do is view the latest StatusID for a TicketID based on the MAX(StatusSet).
The table is controlled by a month slicer. I need to see what the latest StatusID was on the first day of each month, so for example if "July" was selected, then the example below would give me
TicketID LatestStatus
55666 4
If August was selected then the status would be 3, and so on..
What would be the best way to achieve this?
Solved! Go to Solution.
@Anonymous
you can create a measure
Measure =
VAR _date=EOMONTH(min('date'[Date]),-1)
VAR _date2=maxx(FILTER(all('Table'),'Table'[TicketID]=max('Table'[TicketID])&&'Table'[StatusSet]<=_date),'Table'[StatusSet])
return maxx(FILTER(all('Table'),'Table'[TicketID]=max('Table'[TicketID])&&'Table'[StatusSet]=_date2),'Table'[TicketStatusID])
pls see the attachment below
Proud to be a Super User!
@Anonymous
you can create a measure
Measure =
VAR _date=EOMONTH(min('date'[Date]),-1)
VAR _date2=maxx(FILTER(all('Table'),'Table'[TicketID]=max('Table'[TicketID])&&'Table'[StatusSet]<=_date),'Table'[StatusSet])
return maxx(FILTER(all('Table'),'Table'[TicketID]=max('Table'[TicketID])&&'Table'[StatusSet]=_date2),'Table'[TicketStatusID])
pls see the attachment below
Proud to be a Super User!