Forum Discussion

MarionC's avatar
MarionC
Regular Visitor
2 years ago
Solved

Counting Active in non calendar date range

I've read through a number of similar posts, but none quite fits my scenario, and having poked and prodded, I can't make them fit.   I have a USER table with Username, Creation date, Expiry date. W...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi MarionC ,

     

    Your solution is great, audreygerred . Here I have another idea that I want to share for reference.


    You can create a measure to count users.

    Active Accounts =
    CALCULATE(
    COUNTROWS('USER'),
    FILTER(
    'USER',
    'USER'[Creation Date] <= MAX('BILLING'[End Date]) &&
    (ISBLANK('USER'[Expiry Date]) || 'USER'[Expiry Date] >= MIN('BILLING'[Start Date]))
    )
    )

     

    If your Current Period does not refer to this, please clarify in a follow-up reply.

     

    Best Regards,

    Clara Gong

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.