Forum Discussion
Anonymous
4 years agoNot applicable
undefined
I am trying to create a calculated column in my table that uses multiple statements to determine what to display. Expected outcome: This is what I generally want it to look like. I want the Mat...
- 4 years ago
Anonymous
Not sure the data type and how your table is constructed but can you try the following columnMatrix Priority = VAR __Desc = 'Tasks/Inc''s Combined'[result.short_description] VAR __Priority = 'Tasks/Inc''s Combined'[result.priority] VAR __ClosedBy = 'Tasks/Inc''s Combined'[result.closed_by] RETURN SWITCH ( TRUE (), CONTAINSSTRING ( __Desc, "JDSS New" ), "Now", __Priority = 2 && __ClosedBy = BLANK (), "Now", __Priority <> 2 && __ClosedBy = BLANK (), "Next" )
Fowmy
Super User
4 years agoAnonymous
Not sure the data type and how your table is constructed but can you try the following column
Matrix Priority =
VAR __Desc = 'Tasks/Inc''s Combined'[result.short_description]
VAR __Priority = 'Tasks/Inc''s Combined'[result.priority]
VAR __ClosedBy = 'Tasks/Inc''s Combined'[result.closed_by]
RETURN
SWITCH (
TRUE (),
CONTAINSSTRING ( __Desc, "JDSS New" ), "Now",
__Priority = 2
&& __ClosedBy = BLANK (), "Now",
__Priority <> 2
&& __ClosedBy = BLANK (), "Next"
)