Skip to main content
undu82
Level 2
Mar 9, 2023 10:48 PM UTC
Solved

SUM checkbox values

Hi, is it possible to sum the values of all the selected checkboxes? Based on what I have read, it supposes to be SUM({checkbox_field}), but it only gave me the first value.

Thanks!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Doug_Den_Hoed_AtAppStore
Doug_Den_Hoed_AtAppStoreAccepted solution
Community Advisor
Mar 9, 2023 11:38 PM UTC

 

Hi @undu82,

 

Working with multi-select checkboxes can be a bit tricky, but you could adapt the approach I outlined in this post (to fix the order of items) in order to sum up the selected values by following this pattern (using the same example, and valuing each entry at 1 if selected and 0 if not selected):

 

AtApp Swimlane Tag Summed: SUM( IF(CONTAINS("Swimlane Portfolio",{DE:AtApp Swimlane Tag}),1,0) ,IF(CONTAINS("Swimlane Program",{DE:AtApp Swimlane Tag}),1,0) ,IF(CONTAINS("Swimlane Project Owner",{DE:AtApp Swimlane Tag}),1,0) ,IF(CONTAINS("Swimlane Project",REPLACE({DE:AtApp Swimlane Tag},"Swimlane Project Owner","SwimlaneProjectOwner")),1,0) )

 

In this fashion, you could also assign different weighted values for different entries (e.g. 5 for Portfolio, 4 for Program, etc.)

 

Regards,

Doug

Learn more at www.atappstore.com, email doug.denhoed@atappstore.com, or tag me here @Doug_Den_Hoed_AtAppStore.

2 replies

Doug_Den_Hoed_AtAppStore
Community Advisor
Doug_Den_Hoed_AtAppStoreCommunity AdvisorAccepted solution
Community Advisor
Mar 9, 2023 11:38 PM UTC

 

Hi @undu82,

 

Working with multi-select checkboxes can be a bit tricky, but you could adapt the approach I outlined in this post (to fix the order of items) in order to sum up the selected values by following this pattern (using the same example, and valuing each entry at 1 if selected and 0 if not selected):

 

AtApp Swimlane Tag Summed: SUM( IF(CONTAINS("Swimlane Portfolio",{DE:AtApp Swimlane Tag}),1,0) ,IF(CONTAINS("Swimlane Program",{DE:AtApp Swimlane Tag}),1,0) ,IF(CONTAINS("Swimlane Project Owner",{DE:AtApp Swimlane Tag}),1,0) ,IF(CONTAINS("Swimlane Project",REPLACE({DE:AtApp Swimlane Tag},"Swimlane Project Owner","SwimlaneProjectOwner")),1,0) )

 

In this fashion, you could also assign different weighted values for different entries (e.g. 5 for Portfolio, 4 for Program, etc.)

 

Regards,

Doug

Translate
Learn more at www.atappstore.com, email doug.denhoed@atappstore.com, or tag me here @Doug_Den_Hoed_AtAppStore.
undu82
undu82Author
Level 2
Mar 9, 2023 11:43 PM UTC

Thank you very much @doug_den_hoed__atappstore !

Translate