Curr Month cume / Prev Months Total

slians

New Member
Joined
May 22, 2012
Messages
1
Hi there,

I've been racking my brains over this for some time and I can't figure out what's happening. I'm fairly new at PP so please bear with me.

The basic problem I have is I'm trying to get the percentage of returning users from the previous month as a percentage. My dataset is as follows:

Date | Month | User | Day of Month | Stage


With stage being whether a customer is returning or new,
and the pivot I'm working towards looks like this:

Month
Day Jan-12 | Feb-12 | Mar-12
1
2
3
...

my running total users calc is:

CALCULATE(
COUNTROWS(DISTINCT([users])),
FILTER(ALL([day_of_month]),
[day_of_month]<=MAX([day_of_month])
),
[stage]="Returning"
)

and this works perfectly. The issue I have is calculating the total number of users in the previous month. I currently have:
CALCULATE(
COUNTROWS(DISTINCT([users])),
ALL([day_of_month]),
DATEADD([month],-1,MONTH)
)

And this works up to a point - for some reason the last figure that displays in the pivot is the 29th for all months. If I remove Feb from the dataset and go back to after Feb-11 then 30 is the max I get, everything below is blank.

Any ideas why this is happening, and what I can do to get around it? Thanks in advance.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
It would be very helpful if you provided some sample data to work with that illustrates the problem.
 
Upvote 0

Forum statistics

Threads
1,214,574
Messages
6,120,329
Members
448,956
Latest member
Adamsxl

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