
Bigger or equal…
Hi
I have a formula in wich I should like to put the math symbol > or =
I am on an Ipad and the virtual keyboard have not that possibility; just touch > or touch =; but not the math symbol with the two of them in the same touch.
So I tried to put in my formula
=>
Then
= or >
Then
= and >
But I get errors every time.
Could someone help me ?
Thanks if you do.
-
It took me awhile to figure it out, but I think you are seeing duplicates on empty cells because you are not checking for empty fields first.
Even empty cells satisfy your current conditions. You ask Ninox to find records where Nom equals Nom. Even if Nom is empty, you are saying if Empty Nom equals Empty Nom then count it. So you will always get a 1 so you will always see Duplicate. You can see this if you add a new column with the following formula:
let myV := Nom;
cnt(select 'Oiseaux famille genres espéces' where Nom = myV)
You will see that all of your records have at least a one.
Will Nom be able to be empty or will it always have data when your db is complete?
In addition, when you added >= 1 that will mark records with only a single instance of Nom to be a duplicate. Is that what you want?
This is what I mocked up in a test db of mine, I've added in your names:
let myV := Nom;
if myV = null then
"Empty"
else
if cnt(select 'Oiseaux famille genres espéces' where Nom = myV) > 1 then
"Duplicate"
else
null
end
end -
Thank you Steven, and John.
Thank you Fred.
Fred, your formula has some words in French.
Maybe it will not work. I already had issues with that.
I tried to manage it…but I need your help.
A quote is missing at the end of Duplicate. Is that willful ?
For "vide" is it empty or blank ? For "sinon" is it unless or if not ?
Could you, please tell me what is correct ?
let myV := Nom ;
If myV = null then
"empty" / "blank"
sinon unless / if not
if cnt(select 'Oiseaux famille genres espéces' where Nom = myV) > 1 then
"Duplicate"
unless / if not
null
end
end
-
Remember that all Ninox code has to be in English. Table/Field names can be in any language. Any text that is output can be in any language.
let myV := Nom ;
If myV = null then
"empty" / "blank"<--you can put whatever you want here. you can put "vide"
sinon unless / if not<--this has to be in English and has to be else
if cnt(select 'Oiseaux famille genres espéces' where Nom = myV) > 1 then
"Duplicate"
unless / if not<--this has to be in English and has to be else
null
end
end
-
Wow, maybe I need to stop posting. Another mistake of mine. In Line 2, I was wrong to say you need a colon in front of the equal sign. It should read:
if myV = null then
The second image it looks like the formula is working as intended. There are duplicates there.
For the first image can you create a formula column that just has:
let myV := Nom
cnt(select 'Oiseaux famille genres espéces' where Nom = myV)
then what number does it give for Souimanga for example? Does it say 1 or some other number?
-
There are the two formulas of the two differents bases
One has "Nom", the other "Noms"
let myV := Nom ;
if myV := null then
"empty"
else
if cnt(select 'Oiseaux famille genres espéces' where Nom = myV) > 1 then
"Duplicate"
else
null
end
end
let myV := Noms;
if myV = null then
"empty"
else
if cnt(select 'Oiseaux famille genres espéces' where Noms= myV) > 1 then
"Duplicate"
else
null
end
end
-
Well I am now confused. But at least on the coding front you need to double check your coding.
For the Nom formula you sill have the := in line 2.
Now you say you have two formulas, the picture from April 22, 4:21pm is confusing me. one column says Nom and the other says Formule doublons Noms. So I don't know if the formula is pointing to the correct field. Please go back and double check that the fields and formulas you want to check are next to each other so you can be sure you are comparing the correct data.