<ROOT>
 <APPS_INITIALIZE_DATA>
  <USER_NAME>ENGINATICS</USER_NAME>
  <RESPONSIBILITY_KEY>SYSTEM_ADMINISTRATOR</RESPONSIBILITY_KEY>
  <APPLICATION_SHORT_NAME>SYSADMIN</APPLICATION_SHORT_NAME>
 </APPS_INITIALIZE_DATA>
<REPORTS>
<!-- loader xml for Enginatics Blitz Report: Blitz Report License User History -->
 <REPORTS_ROW>
  <GUID>D9E6703161C5D308E0530100007FFD09</GUID>
  <SQL_TEXT>select
z.month-1 month_end,
xxen_util.user_name(z.created_by) user_name,
fu.start_date user_start_date,
fu.end_date user_end_date,
xxen_util.client_time(z.first_run_date) first_run_date,
xxen_util.client_time(z.last_run_date) last_run_date,
z.run_count,
z.report_count,
xrv.report_name most_popular,
z.most_popular_count,
z.user_count,
z.total_run_count,
z.total_report_count
from
(
select distinct
y.month,
y.created_by,
y.first_run_date,
y.last_run_date,
y.run_count,
y.report_count,
max(y.report_id) keep (dense_rank last order by y.count) over (partition by y.month, y.created_by) most_popular,
max(y.count) keep (dense_rank last order by y.count) over (partition by y.month, y.created_by) most_popular_count,
y.user_count,
y.total_run_count,
y.total_report_count
from
(
select distinct
x.month,
xrr.created_by,
xrr.first_run_date,
xrr.last_run_date,
xrr.report_id,
count(*) over (partition by x.month, xrr.created_by) run_count,
count(distinct xrr.report_id) over (partition by x.month, xrr.created_by) report_count,
count(*) over (partition by x.month, xrr.created_by, xrr.report_id) count,
count(distinct xrr.created_by) over (partition by x.month) user_count,
count(*) over (partition by x.month) total_run_count,
count(distinct xrr.report_id) over (partition by x.month) total_report_count
from
(select add_months(trunc(sysdate,&apos;month&apos;),-level+1) month from dual connect by level&lt;=ceil(months_between(trunc(sysdate,&apos;month&apos;),(select min(xrr.creation_date) from xxen_report_runs xrr where nvl(xrr.type,&apos;x&apos;)&lt;&gt;&apos;S&apos;)))) x,
(select min(xrr.creation_date) over (partition by xrr.created_by) first_run_date, max(xrr.creation_date) over (partition by xrr.created_by) last_run_date,  xrr.* from xxen_report_runs xrr where nvl(xrr.type,&apos;x&apos;)&lt;&gt;&apos;S&apos;) xrr
where
xrr.creation_date&gt;=x.month-60 and
xrr.creation_date&lt;x.month
) y
) z,
fnd_user fu,
xxen_reports_v xrv
where
z.created_by=fu.user_id and
z.most_popular=xrv.report_id(+)
order by
z.month desc,
z.run_count desc</SQL_TEXT>
  <ENABLED>Y</ENABLED>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>Blitz Report License User History</REPORT_NAME>
    <DESCRIPTION>Shows the history of active Blitz Report users at every at every month end, looking back the past 60 days.</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>Enginatics</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
  </ANCHORS>
  <PARAMETERS>
  </PARAMETERS>
  <PARAMETER_DEPENDENCIES>
  </PARAMETER_DEPENDENCIES>
  <TEMPLATES>
   <TEMPLATES_ROW>
    <TEMPLATE_NAME>Summary by month</TEMPLATE_NAME>
    <DISTINCT_FLAG>Y</DISTINCT_FLAG>
    <OWNER>ENGINATICS</OWNER>
    <TEMPLATE_COLUMNS>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>1</DISPLAY_SEQUENCE>
      <COLUMN_NAME>MONTH_END</COLUMN_NAME>
      <SORT_ORDER>-1</SORT_ORDER>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>4</DISPLAY_SEQUENCE>
      <COLUMN_NAME>TOTAL_REPORT_COUNT</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>3</DISPLAY_SEQUENCE>
      <COLUMN_NAME>TOTAL_RUN_COUNT</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>2</DISPLAY_SEQUENCE>
      <COLUMN_NAME>USER_COUNT</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
    </TEMPLATE_COLUMNS>
    <TEMPLATE_PIVOT>
    </TEMPLATE_PIVOT>
    <TEMPLATE_SHARED_STRINGS>
    </TEMPLATE_SHARED_STRINGS>
    <TEMPLATE_PARAMETER_DEFAULTS>
    </TEMPLATE_PARAMETER_DEFAULTS>
    <TEMPLATE_STYLES>
    </TEMPLATE_STYLES>
    <TEMPLATE_SHARING>
     <TEMPLATE_SHARING_ROW>
      <SHARING_LEVEL>S</SHARING_LEVEL>
      <LEVEL_VALUE>Site</LEVEL_VALUE>
     </TEMPLATE_SHARING_ROW>
    </TEMPLATE_SHARING>
    <PARAMETER_EXCLUSION>
    </PARAMETER_EXCLUSION>
   </TEMPLATES_ROW>
  </TEMPLATES>
  <DEFAULT_TEMPLATES>
   <DEFAULT_TEMPLATES_ROW>
    <TEMPLATE_NAME>Summary by month</TEMPLATE_NAME>
   </DEFAULT_TEMPLATES_ROW>
  </DEFAULT_TEMPLATES>
  <UPLOAD_COLUMNS>
  </UPLOAD_COLUMNS>
  <UPLOAD_PARAMETERS>
  </UPLOAD_PARAMETERS>
  <UPLOAD_SQLS>
  </UPLOAD_SQLS>
  <UPLOAD_DEPENDENCIES>
  </UPLOAD_DEPENDENCIES>
 </REPORTS_ROW>
</REPORTS>
</ROOT>
