Hello,
I want to count the number of weekends between two dates.
Do you have a solution for this demand ?
Thanks a lot
@TAGORTI ,
See if this works for you...
Create a SYS Time module by Day with the following line items:
Date: start()
Day Nbr of Week: WEEKDAY(Date)
Count Saturdays: IF Day Nbr of Week <> 6 THEN 0 ELSE 1
In another module that is not dimensionalized by Time, you have 3 line items:
Date1: date formatted that is entered
Date2:date formatted that is entered
Number of Weekends:TIMESUM('SYS Time Filter - Day'.Count Saturdays, 'Date 2', 'Date 1')
Hope this works for you,
Rob
Hi,
Try this:
ROUND(('Date 2' - 'Date 1') / 7)
Regards,
Anirudh
@rob_marshall
Thanks a lot.
It worked for me, I did some modifications. It fits my need.
Hi, I have a module with a time range as a dimension. I've set it with a daily time scale, but Anaplan's way of showing daily dates is for example "1 Jan 37" and I need it to be in numbers because when I export it excel doesn't recognize it as the date format that I've set in Windows (OS) (when a date as two digits it's…
Hello, My interface uses basic authentication to log in to Anaplan. The login process has been failing intermittently for about a week. How can I identify the root cause of these Anaplan API login failures? Username and password are correct. The account is not locked or expired. Thanks, Jorge Palma
Hello Anaplan Community, I'm facing an issue while uploading ADO screenshots, crosschecked my file size and naming conventions they are correct as mentioned in the lesson. Anyone faced the same issue? Pls let me know how if any solution to this problem. Thank you.