Hi,
I try to compare 2 list of dates, but not really found a "smart" way to do it...
[Table 1] I have a list of object with their created date (yyyy-mm)
Object ID | Create Date |
O1 | 2022-06 |
O2 | 2022-06 |
O3 | 2022-07 |
[Table 2] And I have a list of used objects per month:
Date Used | Object Id |
2022-06 | O1 |
2022-07 | O1 |
2022-08 | O1 |
2022-08 | O3 |
2022-09 | O1 |
2022-09 | O2 |
2022-09 | O3 |
[Table 3] And I have a list of date to compute the result for each month:
Date |
2022-05 |
2022-06 |
2022-07 |
2022-08 |
2022-09 |
What I try to compute is the number of object non used per month.
In my example:
My first idea is to do a batch macro on each date of [Table 3] , example for 1 step : process date "2022-06".
This batch macro take the 2 other full tables [Table 1] and [Table 2] in input and process like this:
But is there a smarter way to do this without a batch macro?
Alex
Solved! Go to Solution.
Hi @Bargeton,
please find attached a workflow doing what you ask.
The trick I used is around using a append field tool and a formula which allowed me to have all periods and all objects and then comparing dates to be able to tell if it was expected or not. Then I did an aggregate version and a detailed version depending on your needs
Hi,
Thanks for the answer. It's working fine.
I always forget to use the "Append Fields Tool".
User | Count |
---|---|
18 | |
14 | |
13 | |
9 | |
8 |