Hi there - I schedule shipments to be picked up on specific dates from specific sites at specific times, and I need a way to identify if I've scheduled any shipments to be picked up on the same date/site/time to make sure I'm not double booking a site. I've created a formula in my Shipments table that concatenates the three fields:
Kelsey,
I would normally test my answer and supply screenshots, but this one is a shot in the dark while I'm on the move. I think if you use ARRAYFLATTEN, then ARRAYUNIQUE will properly identify the duplicates.
Try something along the lines of
IF( LEN(ARRAYJOIN(ARRAYUNIQUE(ARRAYFLATTEN({DEV | Load Date, Load Site, Load Time Rollup (from Shipments)}), ", "))) < LEN(ARRAYJOIN(ARRAYFLATTEN({DEV | Load Date, Load Site, Load Time Rollup (from Shipments)}), ", ")), "Duplicates Found", "No Duplicates" )
Let me know how it goes!
Kelsey,
I would normally test my answer and supply screenshots, but this one is a shot in the dark while I'm on the move. I think if you use ARRAYFLATTEN, then ARRAYUNIQUE will properly identify the duplicates.
Try something along the lines of
IF( LEN(ARRAYJOIN(ARRAYUNIQUE(ARRAYFLATTEN({DEV | Load Date, Load Site, Load Time Rollup (from Shipments)}), ", "))) < LEN(ARRAYJOIN(ARRAYFLATTEN({DEV | Load Date, Load Site, Load Time Rollup (from Shipments)}), ", ")), "Duplicates Found", "No Duplicates" )
Let me know how it goes!
No luck, still getting No Duplicates. ☹ Thanks for giving it a shot. Any other ideas?
Hmm I experimented a bit and got this to work:
IF(
LEN(ARRAYJOIN(values)) > LEN(ARRAYJOIN(ARRAYUNIQUE(values))),
"Has duplicates",
"No duplicates"
)
Link to base
Not sure how your data's set up though. If the above didn't work could you provide some screenshots of your tables so I can try to replicate it?
--
Edited, found a bug with the formula and fixed it!
Hmm I experimented a bit and got this to work:
IF(
LEN(ARRAYJOIN(values)) > LEN(ARRAYJOIN(ARRAYUNIQUE(values))),
"Has duplicates",
"No duplicates"
)
Link to base
Not sure how your data's set up though. If the above didn't work could you provide some screenshots of your tables so I can try to replicate it?
--
Edited, found a bug with the formula and fixed it!
The problem is that I'm not using any linked fields. Here's the formula on the Shipments table that concatenates the date/site/time:
And here's the setup on the Warehouses table where I've got the Rollup from Shipments and the formula field to identify duplicates:
Thank you for your help! Feels like this should be easier.
The problem is that I'm not using any linked fields. Here's the formula on the Shipments table that concatenates the date/site/time:
And here's the setup on the Warehouses table where I've got the Rollup from Shipments and the formula field to identify duplicates:
Thank you for your help! Feels like this should be easier.
Hm interesting. Could you provide a screenshot of the field settings for the 'Dev' field? If you could DM me an invite link to an empty copy of your base that'd be easiest!
The problem is that I'm not using any linked fields. Here's the formula on the Shipments table that concatenates the date/site/time:
And here's the setup on the Warehouses table where I've got the Rollup from Shipments and the formula field to identify duplicates:
Thank you for your help! Feels like this should be easier.
Hi, was this solved? Having the exact same issue. 🙏
Hi, was this solved? Having the exact same issue. 🙏
Hi there - this was eventually solved by putting this formula in the rollup field.
IF(
LEN(ARRAYJOIN(values)) > LEN(ARRAYJOIN(ARRAYUNIQUE(values))),
"Has duplicates",
"No duplicates"
)
And then by grouping the table by the date/site/time field so I could quickly see how many groups contained more than one item, thereby identifying the duplicates. See in the screenshot how the 01/08/25_Citi - YD_10am group has two items in it.
Hope that helps!
Kelsey
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.