Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Active Customers by day

I currently count active and unactive customers based on customers who have been in +/- 100 days. My measures only give me a current day view of the active customers. Would it be possible to get a me...
  • v-janeyg-msft's avatar
    5 years ago

    Hi, Anonymous 

     

    I'm sorry. I modify the measure.

    active = 
    COUNTX (
        FILTER (
            ALL ( Customers ),
            Customers[CURRENT last order]
                >= SELECTEDVALUE ( 'Table'[Date] ) - 100
                && [CURRENT last order] <= SELECTEDVALUE ( 'Table'[Date] )
        ),
        [customerID]
    ) + 0
    inactive = 
    COUNTX (
        FILTER (
            ALL ( Customers ),
            Customers[CURRENT last order]
                < SELECTEDVALUE ( 'Table'[Date] ) - 100
                || [CURRENT last order] > SELECTEDVALUE ( 'Table'[Date] )
        ),
        [customerID]
    ) + 0
    

    Best Regards

    Janey Guo

     

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