Forum Discussion
QuickBaseCoachD
7 years agoQrew Captain
Aside from the syntax error, it is an odd looking formula, can you explain in words what the logic is trying to do?
- AnnSwelgin7 years agoQrew TraineeIt is within a bar chart report. basically if the activity type is either of those it would count 1 and if not those type then it doesn't count it.
- QuickBaseCoachD7 years agoQrew CaptainIs the result to be s number or a true /false result?
Can you explain the he logic for when it should �count�? - AnnSwelgin7 years agoQrew TraineeI believe it would be true/false, so whether it has either of these activity types or not.
This is the original formula:
If(Contains([Activity Type],
"PDFA",1,
"PDAFA",1,
null)
I found this report someone else had created a few years ago and I am still learning what this table actually does.. I'll do some deeper digging and see if I can fix on my own or ask again. - QuickBaseCoachD7 years agoQrew CaptainOk. Now I understand
Contains([Activity Type], �PDFA")
OR
Contains([Activity Type],�PDAFA") - AnnSwelgin7 years agoQrew TraineeYep but when I put the OR in instead of the comma it give me another error
- QuickBaseCoachD7 years agoQrew CaptainCan you post your exact formula and the error message. I�m not able to see any syntax errors in my formula.
Note that my formula was meant to replace yours. - AdamKeever17 years agoQrew CommanderI had a similar case where after adding an 'OR' condition the formula error checker told me it was expecting a comma, but I saved the field and when I went back in to evaluate it the error was gone and the formula was working fine.
After starting to write this response I thought I would check again and sure enough by going back into the same formula and overwriting 'or' with 'OR' i get the same error stating it is expecting a comma. When I saved it the first time it changed the CAPS version of 'OR' to lowercase 'or' and worked fine. Seems like a bug.