Hi,
I have a page item "P1_DEPT".

I have a page item "P1_DEPT_GRAPH" which is of Percent graph type.

Which showing the percent graph based on the below query.

I want to show the percent graph based on the query given in the source section.
I tried to get the percent graph based on the query but unable to change the percent graph based on the graph.
How to change percent graph based on the query given in the source section...?
Means on change of P1_DEPT item, i want to change the percent graph P1_DEPT_GRAPH.
Example :
If the P1_DEPT value is 10 (dept no from the dept table) then percent graph display the graph based on the employee count from that emp of dept no 10, let us assume employee count is 3 then graph displays as below.

If the P1_DEPT value is 20 (dept no from the dept table) then percent graph display the graph based on the employee count from that emp of dept no 20, let us assume employee count is 60 then graph displays as below.

Please provide the suggestioin / solutions.
Thanks,
Hanu