Forum Discussion

BradElmore's avatar
BradElmore
Qrew Assistant Captain
6 years ago

Combined Text Summary Field (Order and Clean)

The Combine Text summary field is great. But what I would like to do is determine the order -- Which I have achieved by creating a [Order] field within my child table....

[Combine Text Field] = 1 Group A, 2 GroupD, 3 GroupH, 4 GroupY, 5 GroupU, 6 GroupK  

The new Ordered Combine Text Field is now ordered -- but I want to remove the numbers as well as ";" which is "hidden" in the combine text field.

Example: when I create a rich text formula field -- and only insert the [Combine Text Field] -- the field is displayed -- [Rich Text Formula fieldA] = 1 Group A, ; 2 GroupD, ; 3 GroupH, ; 4 GroupY, ; 5 GroupU, ; 6 GroupK  

I would like for the field to display as =  Group A, GroupD, GroupH, GroupY, GroupU, GroupK

I was almost successful with the formula below -- but the formula would only display the first five Groups --- so if greater than 6 groups --- no luck -- also issue is I had "10" as a position...

Almost worked formula below = Group A, GroupD, GroupH, GroupY, GroupU, 

List ("", 
Part(ToText([Combined Text]),1,"123456789;"),
Part(ToText([Combined Text]),2,"123456789;"),
Part(ToText([Combined Text]),3,"123456789;"),
Part(ToText([Combined Text]),4,"123456789;"),
Part(ToText([Combined Text]),5,"123456789;"),
Part(ToText([Combined Text]),6,"123456789;"),
Part(ToText([Combined Text]),7,"123456789;"),
Part(ToText([Combined Text]),8,"123456789;"),
Part(ToText([Combined Text]),9,"123456789;"),
Part(ToText([Combined Text]),10,"123456789;"),
Part(ToText([Combined Text]),11,"123456789;"))

Any advice is greatly appreciated.

15 Replies

  • List(", ",
    Trim(NotLeft(Part($value,1,";"),2)),
    Trim(NotLeft(Part($value,2,";")),2),

    etc


  • BradElmore's avatar
    BradElmore
    Qrew Assistant Captain
    Mark,

    Your formula works great for removing the ";" --- any suggestions for removing the numbers -- 

    1 Group A, ; 2 GroupD, ; 3 GroupH, ; 4 GroupY, ; 5 GroupU, ; 6 GroupK  

    I use the numbers to allow me to determine the order --- 

    Thank you
    • BabiPanjikar's avatar
      BabiPanjikar
      Qrew Assistant Captain
      Is that that applying right(variable, 6) function mentioned above give you the desired outcome to remove the initial digits.

      ------------------------------
      Babi Panjikar
      ------------------------------
    • QuickBaseCoachD's avatar
      QuickBaseCoachD
      Qrew Captain
      I recently needed to have the Summary field sort by Record ID# which is not alpha.  The raw summary field will sort alpha.

      I used a formula rich text field and prefaced each element with a fake href hyperlink. The hyperlink has a "URL" component, but no words to be displayed, so it ends up being invisible in a formula  Rich Text field.

      "<a href=" & PadLeft(ToText([Record ID#]),7,"0") & ">" & "</a>"


      • SystemAdmin7's avatar
        SystemAdmin7
        Qrew Cadet
        Mark, 
        Would you be able to explain this again? I've been trying to figure out where you put this formula, and I'm not having any luck. Is it on the field before you create a combined text? or is it the field that you add to your report? 

        Also, do you happen to have any ideas on how to get this thing to sort by date, from newest to oldest, where the number of  texts fields you're combining will vary? 

        I think if I created a field where it's yyyymmdd and then used your method above I'd get most of the way there. I just would then need to sort it new - old.

        ------------------------------
        Amanda Luna
        ------------------------------
    • AkashSingh's avatar
      AkashSingh
      Qrew Trainee
      Hi I am running into a similar issues and need to figure out how Quickbase sorts the Multi-select Text (summary) field. I need a way to set the sorting order. 

      Thank you
  • var text value = ToText([my combined text summary field]);

    List(", ",
    Trim(Part($value,1,";")),
    Trim(Part($value,2,";")),
    Trim(Part($value,3,";")),
    Trim(Part($value,4,";")),
    Trim(Part($value,5,";")),
    Trim(Part($value,6,";")),
    Trim(Part($value,7,";")),
    Trim(Part($value,8,";")),
    Trim(Part($value,9,";")),
    Trim(Part($value,10,";")),
    Trim(Part($value,11,";")),
    Trim(Part($value,12,";")),
    Trim(Part($value,13,";")),
    Trim(Part($value,14,";")),
    Trim(Part($value,15,";")),
    Trim(Part($value,16,";")),
    Trim(Part($value,17,";")),
    Trim(Part($value,18,";")),
    Trim(Part($value,19,";")),
    Trim(Part($value,20,";")),
    Trim(Part($value,21,";")),
    Trim(Part($value,22,";")),
    Trim(Part($value,23,";")),
    Trim(Part($value,24,";")),
    Trim(Part($value,25,";"))
    )