Forum Discussion

guested's avatar
guested
New Member
5 years ago
Solved

Problem with FILTER

I'm creating an exportable page for our technicians at work, the report will show their statistics vs. the averages for the regions they're in. I'll select a date range and then the technician by nam...
  • guested's avatar
    guested
    5 years ago

    Sorted it out;

     

    RegionAgedTicketCount =

    VAR

    Region = SELECTEDVALUE(Technicians[TechRegion])

    RETURN

    CALCULATE(

    COUNT(sndata[Call]),

    Technicians[TechRegion] = Region,

    FILTER(ALLEXCEPT(sndata, 'Calendar'), DATEDIFF(sndata[OpenedDate], COALESCE(sndata[ResolvedDate], TODAY()), DAY) >= 60)

    )

     

    That seems to work. I assumed CALCULATE would apply the filters sequentially but that seems to not be the case as this works even with the Technicians[TechRegion] = Region in the sequence ahead of the FILTER. Ended up being a simple solution I guess.