@rob_marshall wrote:
From the original attachment, I believe the data was at the day level, thus start() would work great.
Thanks,
Rob
yes! start() formula also worked :) thanks
Yes, the long formula worked. I needed a "per day" date in my line item that's why I didn't used Start () or end () and used the long formula instead. Thanks everyone for the help :)
@kavinkumar wrote:
Hi @david,
The above formula that you mentioned will work only to return 1st and last day of the month. But here the requirement is to get each date across the Time period.
@sarahcorrect me if I am wrong!!
Thanks,
Kavin.
Could you post some screen shots of the modules and line items. It would help to understand the detail more fully
Thanks
David
Hi @DavidSmith attached is the screenshot, thank you :)
You have a couple of things going on in here. First, the formula. Start() is resolving the date that you are currently looking at, in this case Jan 19. So, in this case, what the formula is saying, if 1/1/19 is greater than 3/4/2019 and 1/31/2019 is less than 3/8/2019 then get the working days count from the Calendar module.
So, a couple of issues: One, Jan 1st is not greater than 3/4/2019 while Jan 31st is less than 3/8/2019. In using the AND, this will not resolve to a true. Second issue: your Count module is at the day level while the Deadline module is at the Month level, the number that will be returned will be at the Month level (so not the highlighted values you have in the doc).
Hope this helps,
Rob
Can you explain exactly what the use case and what you are trying to achieve?
you seem to have a time vs time construct, so it would be useful to know what you are expecting to see; that will hepl define the solution
David
Hi @DavidSmith here you go, hope this helps for you to understand my question better :)
Thank you!
Yes, thanks, that was the missing piece
As ever I think the solution is quite simple
Your holiday calendar is perfect; you were almost there, and with an extra line item we can solve it
I've created two alternatives for the cumulative calculation If you timescale is large, the alternative one is more efficient
But the line item formulae are:
Cumulate WDs = CUMULATE(Working Day Count)
Alternate Cumulate WD = Working Day Count + PREVIOUS(Alternate Cumulate WD)
Then in your target module you lookup the running total for the Due Date and subtract the running total from the Submit Date
Excuse my date format, but I'm based in the UK!!
One question I did have and I've assumed it above is that you do need to different dates per month. If that is not the case you can removed the time dimension from the module entirely, as belowI hope that solves it for you
David