Measure to identify new customers within date range

losamfr17

Board Regular
Joined
Jun 10, 2016
Messages
149
Hi,

I have this measure to identify all new users (i.e. "Uploaders") starting from Day >= 10/24/21.
I want to treat all user activity as totally new (regardless of history) starting 10/24/21.
Excel Formula:
New Uploaders (Starting wk39):=
(CALCULATE( DISTINCTCOUNT([customer_id]) , 
    FILTER( VALUES( Uploads[customer_id] ) , 
        CALCULATE( COUNTROWS( Uploads ) , 
            FILTER( ALLSELECTED( 'Retail Calendar' ) , [Day (454)] < MIN( 'Retail Calendar'[Day (454)] ) && 
                                                                               [Day (454)] >= DATE( 2021, 10, 24) ) ) = 0 ) ,
             FILTER( 'Retail Calendar', [Day (454)] >= DATE( 2021, 10, 24 ) ) )

The above measure seems to work well.
The issue lies when I use it in CALCULATE and apply another time FILTER which seems to cancel the filter above.
My goal is to track progress of new uploaders at a Week, Month, Season, and Year level starting from 10/24/21 (NRF Retail 454 calendar).
So for example, my week measure is:
Excel Formula:
Week New Uploaders:=
CALCULATE( [New Uploaders (Starting wk39)] , FILTER('Retail Calendar', [Previous Week (454)] = "LAST_WTD" ) )
Problem: see image. I should be getting 254 for week 40, but instead I get 263. I can't make sense of this.

Any thoughts please? Do you need to see the data model?
 

Attachments

  • MrExcel111021.png
    MrExcel111021.png
    17.9 KB · Views: 9

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top