Skip to main content
Question

Filter Across Similar Fields only shows Field 1 values

  • November 14, 2019
  • 0 replies
  • 74 views

Need some formula help --
4 Multi-Choice fields in same table: Company 1, Company 2, Company 3, Company 4.
Each of these 4 fields has the same set of Choices: Red, Blue, Green, Yellow.
Each record can have 0-4 Company fields filled in.
I need a filter to identify if any of the 4 fields has "Yellow", then filter will show word "Yellow". Or if any of the 4 has "Red", show the word "Red".

a. I created concatenated field Company1234 and then created a Formula Text field
If (Contains([Company1234, "Yellow")=true, "Yellow", Contains([Company1234, "Red")=true, "Red", Contains([Company1234, "Blue")=true, "Blue", Contains([Company1234, "Green")=true, "Green","")
Doesn't work the way I need it to - seems to only filter to show if Company 1 is the value.

b. I tried another Formula Text field 
If((Contains([Company 1], "Yellow")=true or Contains([Company 2, "Yellow")=true or Contains([Company 3], "Yellow")=true or Contains([Company 4], "Yellow")=true), "Yellow",
(Contains([Company 1], "Red")=true or Contains([Company 2, "Red")=true or Contains([Company 3], "Red")=true or Contains([Company 4], "Red")=true), "Red",    etc
This also filters if Company 1 has the value.

This is part of an older app which was setup as a large flat file and I am trying to create some filters to check data while I transition it to Parent Child structure.

------------------------------
Ruby Kapil
------------------------------
This topic has been closed for replies.

MarkShnierYou
Forum|alt.badge.img+22
  • Quickbase Alumni
  • November 14, 2019
Maybe this is what you want
List(", ",
If(Contains([Company1234], "Yellow"), "Yellow")
If(Contains([Company1234], "Red"), "Red")
If(Contains([Company1234], "Blue"), "Blue")
If(Contains([Company1234], "Green"), "Green"))


------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
markshnier2@gmail.com
------------------------------

Forum|alt.badge.img+15
  • Quickbase Alumni
  • November 14, 2019
Ruby,

Since this is a temporary use you can do one long list:

If (  [Company1], "Yellow")=true, "Yellow,
[Company2], "Yellow")=true, "Yellow",
[Company3], "Yellow")=true, "Yellow",
[Company4], "Yellow")=true, "Yellow",
[Company1], "Red")=true, "Red",
[Company2], "Red")=true, "Red",
[Company3], "Red")=true, "Red",
[Company4], "Red")=true, "Red",  "Not Red or Yellow"  )


------------------------------
Don Larson
Paasporter
Westlake OH
------------------------------