Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Drilling doesn't work

Original Post - https://community.powerbi.com/t5/Desktop/Monthly-Total-Open-Cases/mp/1284325#M561428 Can anyone advise how to get the following measurement to drill correctly? In my previous ...
  • mahoneypat's avatar
    mahoneypat
    6 years ago

    Please try this measure added to your table visual on the drillthrough page.  I reproduced your scenario on my end and this appears to get your desired functionality.

     

    IsActive =
    VAR mindate =
        MIN ( 'Date'[Date] )
    VAR maxdate =
        MAX ( 'Date'[Date] )
    RETURN
        CALCULATE (
            COUNTROWS ( Employees ),
            ALL ( 'Date' ),
            OR ( Employees[EndDate] >= mindate, ISBLANK ( Employees[EndDate] ) ),
            Employees[StartDate] <= maxdate
        )

     

    If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

    Regards,

    Pat