Machine usage for each date [HELP!]

mrhuguru

New Member
Joined
Feb 23, 2016
Messages
11
Hey guys,

my company does photobooth rental and we have a huge logistic file with in it the following info (only the pertinent ones is this case) :

Booth Type / Number of booths / City / Install Date / Uninstall Date

I would like to calculate the number of photobooths used for each date (passed & to come), and be able to filter it per city & per type.

I have litteraly no idea how I could manage to do that, does anyone has an idea ?

Thank you so much,
Hugo
 

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.
Can you post a link to a sample file? and you say "...used for each date (passed & to come).." but I don't see a field for usage in your listing.
 
Upvote 0
Hey Akice, thank you for your answer.

Please find attached the sample file (I got rid of the irrelevant columns).

When I am talking about "usage", I mean that the machine is in use or will be in use. To determine if it is or not, I do not have a field but I need to calculate it using install & uninstall date.

This is why for each date of a calendar, I need to sum the machine quantity for each row if and only if said date is within "install date" & "uninstall date".

Not sure I make sense !

https://drive.google.com/file/d/0BytjTNsNJKZabVlkM1RWR1JKWjg/view?usp=sharing
 
Upvote 0
I created a Calendar table with all dates inclusive of the range in your sample data and added to data model. Took your FEUILLE PRINCIPALE sheet and added to data model. I did not create any relationships. Then created a pivot and added the Date values from my new Calendar table. Added this measure to pivot:
Code:
machines in use:=CALCULATE (    COUNTROWS ( Table1 ),
    FILTER (
        Table1,
        MAX ( Calendar[Date] ) >= Table1[INSTALL DATE]
            && MAX ( Calendar[Date] ) <= Table1[DATE DE DESINSTALLATION]
    )
)

You should be able to add slicers for city/state etc. if you add to table. However since the tables are not related you are going to get a warning and the slicers will look a bit weird (grayed out). But this should at least get you started.
 
Upvote 0
Am not able/allowed to see your file, but you can probably do this with the COUNTIFS() function
 
Upvote 0

Forum statistics

Threads
1,214,950
Messages
6,122,428
Members
449,083
Latest member
Ava19

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