topic Re: Has anyone built a calculated field using IFIN formula for a multiselect field on a Custom Field? in Workfront Questions
https://experienceleaguecommunities.adobe.com/t5/workfront-questions/has-anyone-built-a-calculated-field-using-ifin-formula-for-a/m-p/504031#M35781
<P>We have something similar, but it uses SUM and IF. I would imagine you could swap "IF" for "IFIN" though. Essentially, we set the true statement to the value "1" and the false statement to "0". That way, if true is met, it counts for 1 point, if false is met, it counts for 0 points. Then the SUM function that surrounds the formula will add up all the points. It's sort of confusing to explain, but I'll post a generalized example:</P><P> </P><P>=SUM(IFIN(Multi-Select Field,valueX,1,0),IFIN(Multi-Select Field,valueY,1,0),IFIN(Multi-Select Field,valueZ,1,0))</P><P> </P><P>So, in theory, if we had something where all 3 IFIN statements were met, WF would return the value 3. If only 2 IFIN statements were met, WF would return the value 2. Depending on how many multi-select options you have, this could get cumbersome. Some of our multi-selects have about 100 options and that wouldn't be practical for this use. In those cases, you probably won't get much use out of this calculated field.</P><P> </P><P>Is that sort of what you needed?</P>Fri, 10 Sep 2021 16:48:26 GMTChloeRo2021-09-10T16:48:26ZHas anyone built a calculated field using IFIN formula for a multiselect field on a Custom Field?
https://experienceleaguecommunities.adobe.com/t5/workfront-questions/has-anyone-built-a-calculated-field-using-ifin-formula-for-a/m-p/504030#M35780
<P>I'm trying the IFIN(value, value1, value2,..., trueExpression, falseExpression). However, my multi select field has numerous instances that need to be combined. When I reached out to support they said "CONTAINS" wouldn't work for what I'm trying to do. Has anyone had to do this or know enough about calculated fields? I'm trying to create a report to sum the projects for each True Expression but am not able to get the data.</P>Wed, 08 Sep 2021 22:45:07 GMThttps://experienceleaguecommunities.adobe.com/t5/workfront-questions/has-anyone-built-a-calculated-field-using-ifin-formula-for-a/m-p/504030#M35780JaimeDa2021-09-08T22:45:07ZRe: Has anyone built a calculated field using IFIN formula for a multiselect field on a Custom Field?
https://experienceleaguecommunities.adobe.com/t5/workfront-questions/has-anyone-built-a-calculated-field-using-ifin-formula-for-a/m-p/504031#M35781
<P>We have something similar, but it uses SUM and IF. I would imagine you could swap "IF" for "IFIN" though. Essentially, we set the true statement to the value "1" and the false statement to "0". That way, if true is met, it counts for 1 point, if false is met, it counts for 0 points. Then the SUM function that surrounds the formula will add up all the points. It's sort of confusing to explain, but I'll post a generalized example:</P><P> </P><P>=SUM(IFIN(Multi-Select Field,valueX,1,0),IFIN(Multi-Select Field,valueY,1,0),IFIN(Multi-Select Field,valueZ,1,0))</P><P> </P><P>So, in theory, if we had something where all 3 IFIN statements were met, WF would return the value 3. If only 2 IFIN statements were met, WF would return the value 2. Depending on how many multi-select options you have, this could get cumbersome. Some of our multi-selects have about 100 options and that wouldn't be practical for this use. In those cases, you probably won't get much use out of this calculated field.</P><P> </P><P>Is that sort of what you needed?</P>Fri, 10 Sep 2021 16:48:26 GMThttps://experienceleaguecommunities.adobe.com/t5/workfront-questions/has-anyone-built-a-calculated-field-using-ifin-formula-for-a/m-p/504031#M35781ChloeRo2021-09-10T16:48:26ZRe: Has anyone built a calculated field using IFIN formula for a multiselect field on a Custom Field?
https://experienceleaguecommunities.adobe.com/t5/workfront-questions/has-anyone-built-a-calculated-field-using-ifin-formula-for-a/m-p/504032#M35782
<P>I just tested this out with CONTAINS and it seems to work:</P><P> </P><P>SUM(IF(CONTAINS(Multi-Select Field,valueX),1,0),IF(CONTAINS(Multi-Select Field,valueY),1,0),IF(CONTAINS(Multi-Select Field,valueZ),1,0))</P>Fri, 10 Sep 2021 21:11:07 GMThttps://experienceleaguecommunities.adobe.com/t5/workfront-questions/has-anyone-built-a-calculated-field-using-ifin-formula-for-a/m-p/504032#M35782ChloeRo2021-09-10T21:11:07ZRe: Has anyone built a calculated field using IFIN formula for a multiselect field on a Custom Field?
https://experienceleaguecommunities.adobe.com/t5/workfront-questions/has-anyone-built-a-calculated-field-using-ifin-formula-for-a/m-p/504033#M35783
<P>Wow thank you! I'll try it in my form. I appreciate it so much.</P>Mon, 13 Sep 2021 14:59:17 GMThttps://experienceleaguecommunities.adobe.com/t5/workfront-questions/has-anyone-built-a-calculated-field-using-ifin-formula-for-a/m-p/504033#M35783JaimeDa2021-09-13T14:59:17ZRe: Has anyone built a calculated field using IFIN formula for a multiselect field on a Custom Field?
https://experienceleaguecommunities.adobe.com/t5/workfront-questions/has-anyone-built-a-calculated-field-using-ifin-formula-for-a/m-p/504034#M35784
<P>Hi @Jaime Davidsonâ€š , did this end up working for you? I've tried it in my instance, but when multiple items are selected, it doesn't seem to be summing anything up, only when a single option is selected. Thanks!</P><P> </P><P>EDIT: Figured it out, it looks like the variables should be flipped. This calculates correctly when multiple items are selected: </P><P> </P><P>SUM(IF(CONTAINS("Text to find in quotes",MultiselectField),1,0),IF(CONTAINS("Text to find in quotes",MultiselectField),1,0),IF(CONTAINS("Text to find in quotes",MultiselectField),1,0))</P>Wed, 20 Oct 2021 14:01:28 GMThttps://experienceleaguecommunities.adobe.com/t5/workfront-questions/has-anyone-built-a-calculated-field-using-ifin-formula-for-a/m-p/504034#M35784AlexMu2021-10-20T14:01:28ZRe: Has anyone built a calculated field using IFIN formula for a multiselect field on a Custom Field?
https://experienceleaguecommunities.adobe.com/t5/workfront-questions/has-anyone-built-a-calculated-field-using-ifin-formula-for-a/m-p/504035#M35785
<P>I ended up working with a consultant who helped me with the formula. We needed to figure out IF and Contains because we had multiple options for the field where someone can select multiple choice or only one.</P><P> </P><P>IF statement looked like this:</P><P>IF(CONTAINS("x",{multiselect field})&&CONTAINS("y",{multiselect field})||CONTAINS("x",{multiselect field})&&CONTAINS("z",{multiselect field}),"Multiple Parent Regions")</P><P> </P><P>CONTAINS statement looks like this</P><P>IF(CONTAINS("x",{multiselect field}}),"x",IF(CONTAINS("y",{multiselect field}}),"y",IF(CONTAINS("z",{multiselect field}}),"z")))</P><P> </P><P>In my formula, these two statements were strung together. </P>Wed, 20 Oct 2021 17:35:48 GMThttps://experienceleaguecommunities.adobe.com/t5/workfront-questions/has-anyone-built-a-calculated-field-using-ifin-formula-for-a/m-p/504035#M35785JaimeDa2021-10-20T17:35:48ZRe: Has anyone built a calculated field using IFIN formula for a multiselect field on a Custom Field?
https://experienceleaguecommunities.adobe.com/t5/workfront-questions/has-anyone-built-a-calculated-field-using-ifin-formula-for-a/m-p/504036#M35786
<P>This statement was so helpful to me. I struggled with my formula for weeks; this CONTAINS contribution gave me new insights and inspiration to sum values of a multi-select field.</P><P> </P><P>So, thanks for sharing!</P>Thu, 14 Jul 2022 11:47:59 GMThttps://experienceleaguecommunities.adobe.com/t5/workfront-questions/has-anyone-built-a-calculated-field-using-ifin-formula-for-a/m-p/504036#M35786Femke_Crijns2022-07-14T11:47:59Z