As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
I have a requirement to write a report using InfoAssist. User can create pivot table when the report is run (as this is an Active Report output) but we need to display the information using a pivot table, by default.
Below is sample data which is displayed on the report (or the source data).
1. PROCESS_DATE and PROCESS_ID are related. The PROCESS_ID is always unique. 2. START_DATETIME is related to events and STATUS_ID values are related. 3. A TICKET_ID will go through various statuses. 4. DERIVED_DATA which is a sequence id based on PROCESS_ID. When the PROCESS_ID changes the DERIVED_DATA value is reset to 1 else incremented.
The report should by default display only the following output.
Thanks for your reply. I guess (as I have struggled with how I can translate the "SUM CNT.DST.PROCESS_ID" syntax in InfoAssist - I could manage only "CNT.DST.PROCESS_ID") it won't give proper results due to relationships between PROCESS_ID to TICKET_ID (1:M) and TICKET_ID to STATUS_ID (1:M) there is always some extra 'Count'.
ALTER session SET nls_date_format = 'YYYY-MM-DD HH24:MI';
WITH core_data (process_date, process_id, start_datetime, status_id, ticket_id) AS
(SELECT to_date ('2020-05-01', 'YYYY-MM-DD'), 'PVTRJVC', to_date ('2020-05-01 01:12', 'YYYY-MM-DD HH24:MI'), 4, 'BC909889' FROM dual UNION ALL
SELECT to_date ('2020-05-01', 'YYYY-MM-DD'), 'PVTRJVC', to_date ('2020-05-01 01:15', 'YYYY-MM-DD HH24:MI'), 7, 'KD113478' FROM dual UNION ALL
SELECT to_date ('2020-05-01', 'YYYY-MM-DD'), 'PVTRJVC', to_date ('2020-05-01 01:20', 'YYYY-MM-DD HH24:MI'), 2, 'KD113478' FROM dual UNION ALL
SELECT to_date ('2020-05-01', 'YYYY-MM-DD'), 'PTRJVCK', to_date ('2020-05-01 01:02', 'YYYY-MM-DD HH24:MI'), 5, 'BC789889' FROM dual UNION ALL
SELECT to_date ('2020-05-01', 'YYYY-MM-DD'), 'PTRJVCK', to_date ('2020-05-01 01:15', 'YYYY-MM-DD HH24:MI'), 8, 'BC789889' FROM dual UNION ALL
SELECT to_date ('2020-05-01', 'YYYY-MM-DD'), 'PTRJVCK', to_date ('2020-05-01 01:20', 'YYYY-MM-DD HH24:MI'), 1, 'PPTQT890' FROM dual UNION ALL
SELECT to_date ('2020-05-02', 'YYYY-MM-DD'), 'MSKUSER', to_date ('2020-07-01 01:02', 'YYYY-MM-DD HH24:MI'), 4, 'LM878982' FROM dual UNION ALL
SELECT to_date ('2020-05-02', 'YYYY-MM-DD'), 'MSKUSER', to_date ('2020-07-01 01:15', 'YYYY-MM-DD HH24:MI'), 9, 'VACHAM91' FROM dual UNION ALL
SELECT to_date ('2020-05-02', 'YYYY-MM-DD'), 'MSKUSER', to_date ('2020-07-01 01:20', 'YYYY-MM-DD HH24:MI'), 5, 'AAPKQT04' FROM dual)
SELECT derived_data.process_date
, derived_data.status_id
, SUM (derived_data.seq_id) AS cnt
FROM
(SELECT core_data.process_date
, core_data.process_id
, core_data.start_datetime
, core_data.status_id
, core_data.ticket_id
, ROW_NUMBER () OVER (PARTITION BY core_data.process_id ORDER BY core_data.start_datetime ASC) AS seq_id
FROM core_data
) derived_data
WHERE derived_data.seq_id = 1
GROUP BY derived_data.process_date
, derived_data.status_id
ORDER BY derived_data.process_date
, derived_data.status_id ;
ALTER session SET nls_date_format = 'YYYY-MM-DD HH24:MI';
WITH core_data (process_date, process_id, start_datetime, status_id, ticket_id) AS
(SELECT to_date ('2020-05-01', 'YYYY-MM-DD'), 'PVTRJVC', to_date ('2020-05-01 01:12', 'YYYY-MM-DD HH24:MI'), 4, 'BC909889' FROM dual UNION ALL
SELECT to_date ('2020-05-01', 'YYYY-MM-DD'), 'PVTRJVC', to_date ('2020-05-01 01:15', 'YYYY-MM-DD HH24:MI'), 7, 'KD113478' FROM dual UNION ALL
SELECT to_date ('2020-05-01', 'YYYY-MM-DD'), 'PVTRJVC', to_date ('2020-05-01 01:20', 'YYYY-MM-DD HH24:MI'), 2, 'KD113478' FROM dual UNION ALL
SELECT to_date ('2020-05-01', 'YYYY-MM-DD'), 'PTRJVCK', to_date ('2020-05-01 01:02', 'YYYY-MM-DD HH24:MI'), 5, 'BC789889' FROM dual UNION ALL
SELECT to_date ('2020-05-01', 'YYYY-MM-DD'), 'PTRJVCK', to_date ('2020-05-01 01:15', 'YYYY-MM-DD HH24:MI'), 8, 'BC789889' FROM dual UNION ALL
SELECT to_date ('2020-05-01', 'YYYY-MM-DD'), 'PTRJVCK', to_date ('2020-05-01 01:20', 'YYYY-MM-DD HH24:MI'), 1, 'PPTQT890' FROM dual UNION ALL
SELECT to_date ('2020-05-02', 'YYYY-MM-DD'), 'MSKUSER', to_date ('2020-07-01 01:02', 'YYYY-MM-DD HH24:MI'), 4, 'LM878982' FROM dual UNION ALL
SELECT to_date ('2020-05-02', 'YYYY-MM-DD'), 'MSKUSER', to_date ('2020-07-01 01:15', 'YYYY-MM-DD HH24:MI'), 9, 'VACHAM91' FROM dual UNION ALL
SELECT to_date ('2020-05-02', 'YYYY-MM-DD'), 'MSKUSER', to_date ('2020-07-01 01:20', 'YYYY-MM-DD HH24:MI'), 5, 'AAPKQT04' FROM dual
)
SELECT derived_data.process_date
, derived_data.status_id
, SUM (derived_data.cnt) AS cnt
FROM
(SELECT core_data.process_date
, core_data.status_id
, COUNT (DISTINCT core_data.process_id) AS cnt
FROM core_data
GROUP BY core_data.process_date
, core_data.status_id
) derived_data
GROUP BY derived_data.process_date
, derived_data.status_id
ORDER BY derived_data.process_date
, derived_data.status_id;
It has been a week and no one has been able to give you additional guidance. If this is still an issue please open a case with techsupport if you haven't already.
Thank you for using Focal Point!
Chuck Wolff - Focal Point Moderator WebFOCUS 7x and 8x, Windows, Linux All output Formats
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005
I have used HOLD file concept in WebFOCUS. I was planning to focus on the language, but fortunately InfoAssist tool is sufficient to satisfy my requirement.
Newbie. WebFOCUS 8.2.0.3. Client 8.2.0.4.
Posts: 46 | Location: UK | Registered: August 30, 2018