I try to have a condition on a multiple choice column.
With single choice it is working easyly but I could not find a method
to do it with a multiple choice column.
For instance, the column named "Choices" has the possible values: Car, Bike, Bus, Plane
So I want a condition to check for the values that were selected (in pseudocode)
IF Choices contains "Car" then ....
IF Choices contains "Bike" then ....
IF Choices contains "Bus" then ....
IF Choices contains "Plane" then ....
But in the designer when I tried to implement such a condition, im not able to write this structure.
Someone told me to convert the values from the multiple chpice column to a calculated column to work with it, but isnt there a more comfortable solution?
I already asked it in the the social TechNet with the described solution:
https://social.technet.microsoft.com/Forums/windowsserver/en-US/41faa48a-85e9-4526-b416-05cf3eeb2e0b/sharepoint-designer-workflow-condition-on-multiple-choice-field?forum=sharepointcustomization
But I dont believe I am the only one who ever needed such a condition.
UPDATE: Since it appears to be the only solution I am copying the value of the multiple choice column as choice value to a workflow variable of type string. Then the string is set as value for a normal text column. Now I can have the condition
IF value of clolumn contains "Car" then....
Related
I have a Sharepoint List 'TeamValues' that defines values that should appear in another list.
TeamValues List:
Title Team Sub-Team
1 A Blue
2 A Green
3 B Yellow
4 C Silver
5 C Gold
I have a list that users can edit and in this list I want to lookup 'TeamValues' list and create a dropdown list for users to select a value from the Team column. This needs to be unique so in this case the values that should appear are: A,B,C
Once they select a value I need a second column to populate a drop down list that users can select E.g. If they select Team: A, then the second drop down should show: Blue, Green as the options.
How can I do this using Sharepoint? I don't have any code access and only have the sharepoint GUI to work with.
Is this possible?
I have created a lookup choice column Team that looks at my TeamValues List however this is showing all values e.g. A,A,B,C,C. I have created a lookup choice column for the subteam that also shows every value. I dont know how to link these together or get a relationship between the two choice drop downs/ remove duplicate values. I tried the following option: 'the Enforce unique values is not displayed.' which did not work
No code applicable
I am sorry to say that but I think there is no OOB functionality to show distinct values of lookup column and to do this kind of relation without any code. I also did some research just to be sure but I could not find anything like that.
If You would consider some code You can always use javascript jsLink technology to achieve this. It's not that hard. It's a JS file that You can add to some lib on sharepoint site and then You can add this JS to webpart manually without any deploy or other. After that with javascript You can overwrite the default behavior of any control/column and do this kind of relation or show only distinct values.
I´m trying to set up unique values in my PowerApp-Form. The data is stored in a Sharepoint list. I have a column called watches, items in this column have a unique number, which have to be unique. People can pick multiple of those watches in a LookUp-field. But before submitting the form, I need to check if those picked values already exist in my list and at least display an error message.
I have setup a regular text field and added following rule to it:
If(LookUp(MyList.Watches;DataCardValue4.SelectedItems.Value in Watches;"OK")<>"OK";"No Error";"Watch already exist")
DataCardValue4 is my LookUp field, where people can pick those watches. With this rule I want to check if a item already is in my column watches and let my text field display the error. Somehow the rule doesn´t work.
Can you tell me how I compare multiple lookup choices to my table/column entries?
The first parameter to the LookUp function should be the table (SharePoint list) rather than the column. So the first parameter should be 'MyList' rather than 'MyList.Watches'. Also, I'm not sure that the formula provided (second parameter to LookUp) will work. In your formula, you will be looking for multiple items (DataCardValue4.SelectedItems.Value) within multiple items (Watches). Perhaps you can update your app to have users only pick one watch value before submitting?
One last thing to note. I'm not sure how big you expect your SharePoint list to get, but I would highly recommend keeping your LookUp formula within the bounds to support delegation. More specifically, SharePoint has different formula requirements than other connectors. For example, you can use '=' in your formula, but not 'in'.
Your new rule might look something like below. Please note that it could have syntax errors and might not even be delegable in it's current form since I am providing the rule with no checking. Also, I switched from using LookUp to using Filter instead just because I'm more familiar with Filter. However, both functions are very similar.
If(CountRows(Filter(MyList; DataCardValue4.Selected.Value = Watches)) > 0; "Watch already exist"; "No Error")
I am trying to create system for assigning tasks to a team using existing sequence. I have four separate columns:
Column A – Indicates the given sequence of operators
Column B – Indicates number of current tasks per operator (imported from another file by vlookup)
Column C – Indicates the name of the operator that was assigned to the last task (imported from another file by vlookup)
Column D – Indicates whether any of the operators are currently on holiday (check/uncheck check box (TRUE/FALSE logic)
I would like to automate the system so that the next operator that is due to receive tasks is displayed, however the operator must not have more than 4 tasks already assigned to him/her and must be present (not on holiday).
The selection process must repeat taking into consolidation the given sequence until the name is selected, hence if the last name in the sequence is not the exact match the system must start with the first name in the sequence.
Could someone be able to figure this out please as I am completely stock.
Currently, I have the following, column with the following =IF(B2<=4,A2,"N/A") and another column with the following =IF(E2=FALSE,F2,"N/A"). And one more column with =INDEX(SQESequence,MATCH(C2,SQESequence,0)+1,1), however that is not fully automated.
I think that I understand your problem / question and have come up with a solution. A more elegant formula solution may exist, will play with it more if I have time.
{=IFERROR(INDEX(INDIRECT("A"&MATCH(C2,A2:A5)+1&":A5"),MATCH(1,(INDIRECT("A"&MATCH(C2,A2:A5)+1&":A5")<>$C$2)*(INDIRECT("B"&MATCH(C2,A2:A5)+1&":B5")<4)*(INDIRECT("D"&MATCH(C2,A2:A5)+1&":D5")=FALSE),0)),INDEX($A$2:$A$5,MATCH(1,($A$2:$A$5<>$C$2)*($B$2:$B$5<4)*($D$2:$D$5=FALSE),0)))}
Enter CTRL SHIFT ENTER to set as an array formula, each function then returns an array of values rather than just a single value. You know you have set as an array formula when you see the { } 's
They say that a picture is worth 1000 words....so here are three!
The context of my problem is that I have to lists:
One list of categories
One list of items
The number of categories/items in both list can vary, as well as their order in it.
My problem is that I want to implement 2 possible types of actions:
The first action is to be able to assign each item to one or more categories. For example, I am the user of the excel sheet and I want to assign item 3 to categories 1, 2 and 4 (via checkbox or other means).
The second action is to be able to highlight all the items in a category by selecting this category (either select the cell or the category in a dropdown list). For example, is items 1 an 3 belong to category 1, we would have the following results when selecting category 1:
I would like to realize this in an excel spreadsheet with VBA macro. I tried to find technical solutions in order to implement this but without success. Indeed, I would need to link variables to a cell (in order to assign categories to item) but I found no way to do that (classical use of variables and arrays are too restricted for the requirements).
My questions are therefore:
Do you think the proposed application is implementable in excel (potentially with VBA) ?
Do you have ideas of what technical solutions I could use in order to implement it so that I have a starting point to solve my problem ?
You can use excel as a 2-entries array to assign items to categories; then use conditional formatting:
Maybe its too simple for your case, but it can help somebody else.
What I'm trying to do: in my table there is a column called "Work Request Activity Type" that has cells that describe what kind of "transaction" took place.
These WRAT's they can be split into two types, Financial Actions and Non Financial Actions.
I'm dealing with over 9,000 rows so doing this individually on each row would be a long long process, so what I'm looking to do is somehow create a column where its row cells say Financial or Non financial based on the preceding work request activity type.
I believe what you want is an additional column that specifies whether the type of WRAT is financial or non-financial? If that is right, you can do that as follows:
In Spotfire you can add columns to your data table via Insert > Calculated Column.
With a simple if-statement in the calculated column you can specify all the transactions as either financial or non-financial actions.
For example:
If([YourColumn]=="type1" OR [YourColumn] =="type2" OR [YourColumn] == "type3, etc. , "Financial, "Non-Financial" )
Alternatively, you could also do the same in Excel.
You can also use 'in' to shorten your cases:
if([YourColumn] in ("type1","type2","type3"),"Financial","Non-Financial")
Take a look at the ~= operator as well. Very powerful to find text within text. Works like wildcards:
if([yourColumn] ~= "type","Financial","Non-Financial")