RSA IGL Version: V7.1x & V7.2x
Modules: Governance
Product Area: Charts, Multi Series
Note: A summary of all RSA IGL recipes can be found here: (TBC)
Time to apply: ~20 minutes
Please share your results and ideas below!
Summary:
This recipe shows you how to create a very simple multi-series chart, displaying the total number of joiners AND leavers you have had each week, over the previous 8 weeks.
You can use this data to understand trending within your organisation and potentially look into how automation of the joiners and leavers process, could save you time/money
Blog Contents:
Make sure you thoroughly test any changes in lower environments first before promoting them to Production.
If you want to change this chart to display more/less than 8 weeks, you need to update 3 key values in the SQL.
I would strongly recommended you do not have too many weeks, otherwise it will not display very well in the UI.
Please test this works first, within your environment.
(select * from
(select
T1.tmpWeek as "Week",
CASE WHEN T2.TotalPerWeek IS NULL THEN CAST(('0') AS NUMBER(20)) ELSE CAST(T2.TotalPerWeek AS NUMBER(20)) END AS "# Leavers",
CASE WHEN T3.TotalPerWeek IS NULL THEN CAST(('0') AS NUMBER(20)) ELSE CAST(T3.TotalPerWeek AS NUMBER(20)) END AS "# Joiners"
from
(
SELECT
to_char(sysdate - (7 * level) +7,'YYYYMMDD') as FullDate,
to_char(sysdate - (7 * level) +7,'WW') as tmpWeek
FROM dual
CONNECT BY LEVEL <= 8
) t1
left join
(
select
'Leavers' as AppAction,
tmpWeek,
count(deletion_date) as TotalPerWeek
from
(
select distinct
ID,
deletion_date,
to_char(deletion_date,'WW') as tmpWeek
from avuser.pv_users
where deletion_date > sysdate - 56
)
group by tmpWeek
) t2
ON t2.tmpWeek = t1.tmpWeek
left join
(
select -- this will tell you how many accounts have been created per week
'Joiners' as AppAction,
tmpWeek,
count(creation_date) as TotalPerWeek
from
(
select distinct
ID,
creation_date,
to_char(creation_date,'WW') as tmpWeek
from avuser.pv_users
where creation_date > sysdate - 56 --change this to be the same number of days, as per the total weeks selected
)
group by tmpWeek
) t3
ON t3.tmpWeek = t1.tmpWeek
order by FullDate asc)
)
The output looks like this in my environment. Showing that there were 1651 new joiners in week 23 of this year and 41 leavers in week 27 of the year
If you get an error at this stage, please test your SQL in a Query tool, like "SQL Developer" or "SQL Squirrel" to ensure it works first.
If it still doesn't work, please share your SQL and a screen shot of the issue below.
There are MANY other "display attributes" you can play with on this screen, so please update and make changes as you see fit.
Add this chart to a dashboard, so you can easily see the data.