Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Unable to create BAR chart dashboard

Deepu
New Contributor III
New Contributor III

Hello,

Iam not able to create ES bar chart with below configurations. can someone suggest anything I need to adjust in the query 

 

Dashboard Query

SELECT 
   ar.ENDPOINTASCSV AS 'label', 
    COUNT(DISTINCT ar.jbpmprocessinstanceid) AS 'data'
FROM 
    ARS_REQUESTS ar
GROUP BY 
    ar.ENDPOINTASCSV

LOCAL QUERY

SELECT 
   ar.ENDPOINTASCSV AS 'label', 
    COUNT(DISTINCT ar.jbpmprocessinstanceid) AS 'data'
FROM 
    ARS_REQUESTS ar
WHERE  ar.ENDPOINTASCSV=${endpointNum}

lOCAL fILER QUERY

{"parameters":[{"paramName":"endpointNum","parentParam":"","label":"Endpoint Name","type":"dropdown","dataType":"query","value":"SELECT DISPLAYNAME AS 'key', name as 'displayValue' FROM ENDPOINTS WHERE DISPLAYNAME  IN ('AutoSys','Canary', 'HANA', 'DBWorks', 'Hyperion Planning', 'Logility', 'Maintenance Connect', 'MITE','CRM/Dynamics','GainSeeker','Ignition','JDA Fulfilment','MII','Power BI')"}]}

2 REPLIES 2

PremMahadikar
Valued Contributor
Valued Contributor

Hi @Deepu,

This is working for me. Try below:

PremMahadikar_3-1713910722422.png

Dashboard QuerySELECT ar.ENDPOINTASCSV AS 'label', COUNT(DISTINCT ar.jbpmprocessinstanceid) AS 'data' FROM ARS_REQUESTS ar GROUP BY ar.ENDPOINTASCSV
Chart Properties{}
Local QuerySELECT ars.ENDPOINTASCSV as 'label', COUNT(DISTINCT ars.jbpmprocessinstanceid) AS 'data' FROM ARS_REQUESTS ars,endpoints ep where ars.ENDPOINTASCSV=ep.endpointname and ep.endpointkey=${endpointNum}
Local Filter Query{"parameters":[{"paramName":"endpointNum","parentParam":"","label":"Endpoint Name","type":"dropdown","dataType":"query","value":"Select distinct at.endpoint as 'key',ep.endpointName as 'displayValue' from endpoints ep inner join arstasks at on ep.endpointkey=at.endpoint where ep.endpointkey is not null"}]}

Dashboard preview:

PremMahadikar_2-1713910600087.png

After Filter:

PremMahadikar_1-1713910562481.png

If you find the above response useful, Kindly Mark it as Accept As Solution and hit Kudos

Deepu
New Contributor III
New Contributor III

Its working. Thanks for the response