Skip to main content

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Skip the ticket, Chat with Qlik Support instead for instant assistance.
cancel
Showing results for 
Search instead for 
Did you mean: 
saivina2920
Creator
Creator

How to add more condition in Dimesnion expression for Pie Chart

I am using  the below expression as a "dimension" for pie chart

Dimension query below.

=if(len(trim(EMPLOYEE_REASON))=0,'Others',EMPLOYEE_REASON)

Expression query below

=Count(DISTINCT EMPID_NUMBER)

In addition, i want to add more fields in the above dimension auery.

Additional fields : 

[FROM]={'*MARIAM*'},

[EMPSTATUS]={'Current'}

[TO]="$(vPlaces)"

How to add the above 3 additional condition in Dimension query for pie chart..

Labels (1)
2 Solutions

Accepted Solutions
MayilVahanan

HI @saivina2920 

you can apply in measure .

=Count({<[TO]={'$(vPlaces)'},[FROM]={'*MARIAM*'},[EMPSTATUS]={'Current'}>}DISTINCT EMPID_NUMBER)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

Chanty4u
MVP
MVP

you can use in expresion only already mayil provided the expression you can use it

=Count({<[TO]={'$(vPlaces)'},[FROM]={'*MARIAM*'},[EMPSTATUS]={'Current'}>}DISTINCT EMPID_NUMBER)

View solution in original post

5 Replies
MayilVahanan

HI @saivina2920 

you can apply in measure .

=Count({<[TO]={'$(vPlaces)'},[FROM]={'*MARIAM*'},[EMPSTATUS]={'Current'}>}DISTINCT EMPID_NUMBER)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
PriyankaShivhare
Creator II
Creator II

May be try this:
aggr(only({<[FROM]={'*MARIAM*'},[EMPSTATUS]={'Current'}>}EMPLOYEE_REASON),EMPLOYEE_REASON)
saivina2920
Creator
Creator
Author

where we can apply either dimension or expression..?

also need to add [TO]={'$(vPlaces)'}..?

saivina2920
Creator
Creator
Author

Any update .

Chanty4u
MVP
MVP

you can use in expresion only already mayil provided the expression you can use it

=Count({<[TO]={'$(vPlaces)'},[FROM]={'*MARIAM*'},[EMPSTATUS]={'Current'}>}DISTINCT EMPID_NUMBER)