2

I'm trying to filter out Choice Types that are Optional and Not Optional. I am using a Task List on 2019 on prem. I've used different formulas but they end up with syntax errors and I cannot save it.

enter image description here

8
  • What are the options of this "Choice Type" column? And where have you defined if which option is either optional or not-optional? Commented Oct 28, 2024 at 8:37
  • Hi @DikeshGandhi "Choice Type 1, Choice Type 2, Choice Type 3, Choice Type 4" It's my first time using filtered views like this, I'm doing this at the request of a semi technical user so where should I have the "Optional" "Not Optional" defined. Thanks Commented Oct 28, 2024 at 9:00
  • It seems there is no OOTB options available. You can customize list forms using Power Apps and in that you can write logic to make few options are required and display validation message if user has not selected those options. Reference: learn.microsoft.com/en-us/sharepoint/dev/business-apps/… Commented Oct 28, 2024 at 9:33
  • 1
    @user79745 Are you just trying to show "Optional" and "Not Optional" as text results in your calculated column OR are you trying to make entries in any column/field optional/mandatory based on choice column? Commented Oct 28, 2024 at 10:46
  • @GaneshSanap-MVP wants to show Optional/Not Optional. I figured out that it's the OR function that causing problems, just trying to figure out a way around an OR statement. Commented Oct 28, 2024 at 11:16

1 Answer 1

3

If you want to show "Optional" as a result when "Choice Type" is either "Choice Type 1" OR "Choice Type 2" OR "Choice Type 3",

Try using calculated column formula like this:

=IF(OR([Choice Type]="Choice Type 1",[Choice Type]="Choice Type 2",[Choice Type]="Choice Type 3"),"Optional","Not Optional")

Note:

  1. Sometimes comma(,) does not work in formula (it is based on language or regional settings on your site). So in that case use semicolon(;) instead of comma(,).
  2. Use correct display name of your SharePoint columns in above formula.
  3. Wrap column names inside [] if your column name has space in it. For example: [My Column Name].
2
  • 1
    You are awesome! Finally got it to work. Thanks! Commented Oct 28, 2024 at 11:29
  • You are welcome, glad it worked for you! Commented Oct 28, 2024 at 11:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.