Hi there!
Following is the most intriguing question of December!
I need a help with creating a formula for "Formula " column. The idea is it should show the occurrence of textual string. For example, if in “load#” column I have two identical textual or numerical values, formula cell in the same row should say “exists”.
Please, help me!
Hi @FrankZiyar - You mean that the formula column should alert you if any two or more rows on the board have a duplicate value for the text string? I’m pretty sure you can’t do this with standard Formula columns, but you could do it with Integromat or Zapier.
Hello @PolishedGeek !
Yes, the formula should alert users if there are more than two identical values in the same column. Thank you for your advice, I will try to use Integromat.
but this would be fairly straight forward. If you use the “Uppercase” example integration tutorial as a base. Note: I didnt test this so its not a working solution. Just the building blocks.
Trigger on your target column. (as stated.)
Use the Monday sdk with graphql. in my example “dept” is the target.
you will have to set this up in your code. below is just from playground.
query {
boards (ids: 8825xxxx6) {items {id name
column_values (ids: “dept”) { value }
} } }
Then in your code
let targetlist = [ ];
data.forEach(item => {
targetlist.push(item.column_values[0])
})
let seen = new Set();
var hasDuplicates = targetlist.some(function(currentObject) {
return seen.size === seen.add(currentObject.value).size;
});
then “hasDuplicates” needs to be false if your target is good. or replace text with your warning text on true …