In Power BI, I'm trying to use a measure to take the = MAX(CallDetails[Date])
that is left once I drill through on a visual.
To create a calculated table. That is a filtered version of an unrelated table AgentActivities
by [Max Date]
.
My goal is to create 2 visuals side by side of the calls that came in on a select day with the agents that were available to take them.
I've tried quite a few vairants of this but this is essentially what i'm trying to do:
FilteredAgentActivity =
var MaxDate = [Max Date]
return
FILTER('AgentActivity',AgentActivity[Date] = MaxDate)
--This does not return any results
if I hard code the date I get the desired result:
FilteredAgentActivity =
FILTER('AgentActivity',AgentActivity[Date] = DATEVALUE("2020/04/18"))
At this point, I'm beginning to think using a measure as a filter expression might just not compatible with what I'm trying to achieve. Does anyone know where I'm going wrong or a better way of doing this?
Thanks Ben