Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
jakobjosef
Creator II
Creator II

dynamic Status_Show Names with Status "x" or "y".

Hello dear QV-Community,

may I ask you for help?

Following problem:
I would like to show the sales-value of all employees with the status "planned" and the status "unplanned".

I am able to manage to show them separately (one table for planned one for unplannend).

My dynamic dimension is like:

=if ( status = 'planned', employeeName)

for values it s just "Sum(Sales)".

this works for  'unplanned' as well.

I would like to show 'unplanned' and 'planned' in one table, so i tried to type my dynamic dimension like:

=if (status = 'planned' or 'unplanned', employeeName).


But unfortunately this doesnt work. Does anyone know who I can combine both statuses?

Thank you for your help.

Greetings
Jakob

1 Solution

Accepted Solutions
sibin_jacob
Creator III
Creator III

Write like this


=if (status = 'planned' or status ='unplanned', employeeName).

View solution in original post

4 Replies
sibin_jacob
Creator III
Creator III

Write like this


=if (status = 'planned' or status ='unplanned', employeeName).

Anonymous
Not applicable

Try using the code below:

In 'Dimension' tab, add a calculated dimension and type the following:

=value list('Planned', 'Unplanned')

In 'Expressions' tab, add the following two expressions:

1. if(value list('Planned', 'Unplanned')='Planned', sum(if(status='Planned', Sales)))

2. if(value list('Planned', 'Unplanned')=Unplanned', sum(if(status='Unplanned', Sales)))

jakobjosef
Creator II
Creator II
Author

i already solved it on my own:

=if(status = 'planned' OR status = 'unplanned', employeeName)

jakobjosef
Creator II
Creator II
Author

THANK YOU so much for your quick(view) help