Future startups

cajste

Board Regular
Joined
Oct 22, 2012
Messages
67
Hello,

I have a data modell containing among other things sales date and start date and I need to calculate the number of future startups at any givet date that were sold on or before that date. I would like to show it as a pivot table with year and month as rows and the logic of the measure is that for each row calculate all future startups, i.e. has a startdate that is greater than the maximum date in the row context, and at the same time were sold before or on the maximum date of the row context. How do I set that measure up?

Example data below and also an example of the desired output.

Any help appreciated!
Caj

Example data

SalesdateStartdate
2017-01-272017-02-10
2017-02-022017-02-16
2017-02-142017-02-28
2017-01-242017-03-01
2017-01-202017-03-20
2017-03-272017-06-01
2017-01-192017-10-01
2017-03-142017-10-01

<tbody>
</tbody>

Desired output

MonthFuture startups
2017
14
23
33
43

<tbody>
</tbody>
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
If you had a helper column in column C where C2 formula=Month(A2)
And copy that data to the end of your dataset, you should be able to select the entire range and insert pivot table.

When Setting up, put "Salesdate" in the report filter, the new "Salemonth" in the row labels, and "Startedate" in sum values boxes.
 
Upvote 0

Forum statistics

Threads
1,214,647
Messages
6,120,722
Members
448,987
Latest member
marion_davis

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