Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
gopikrishnach
Creator
Creator

Question on Pivot Table % Calculation

I want to create a Dashboard with Monthly % calculation by task, By monthwise and Yearwise based on Task Completion Time. I Created a Piovt Table with my data, but the % values are not coming correctly.


Here iam attaching the datewise date, based upon data we need to calculate the Monthwise reload completion  % and yearwise reload completion % Value.


Please help me how to calculate the % calculation by Monthly and yearly for each task.

1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Here you are

Capture.PNG

You provided the SLA Timings for only 2 months, that's why I removed all other data to show you how this will work for 2 months. But this can be expanded to more than 2 months.....

Table:

LOAD [Task Name],

    Date(Num#(Date)) as Date,

    [Task Completion Time],

    Month(Num#(Date)) as Month

FROM

(ooxml, embedded labels, table is Sheet2);

[SLA Time]:

CrossTable(Month, [SLA Timings])

LOAD * INLINE [

    Task Name, Jun, Jul

    1_vd, 5:00:00, 5:00:00

    1_CURR, 5:00:00, 5:00:00

    1_ADR_finals, 5:00:00, 5:00:00

    1_ADR_prelims, 6:30:00, 5:00:00

    1_DC_QVD Extract, 5:00:00, 5:00:00

    1_CLASS QVD Extract, 5:00:00, 5:00:00

    1_BRDG_QVD_Extract, 5:00:00, 5:00:00

    1_SAL_QVD_Extract, 5:30:00, 5:00:00

    1_QVD_Final, 5:00:00, 5:00:00

    1_QUOT_Daily, 5:00:00, 5:00:00

    1_User_Pro, 5:00:00, 5:00:00

    2_TVD, 5:00:00, 5:00:00

    2_Tvfb, 5:00:00, 5:00:00

    3_APPBD, 6:08:00, 6:08:00

    3_APPBD_Trans, 6:30:00, 5:15:00

    4_APBD, 8:30:00, 5:30:00

];

[Final SLA Time]:

Right Keep (Table)

LOAD [Task Name],

Month(Date#(Month, 'MMM')) as Month,

[SLA Timings]

Resident [SLA Time];

DROP Table [SLA Time];

Once you have SLA Timings for all Months, you can remove the Right Keep in Red color above.....

I request that if you requirement is met now, please close this thread by marking correct and helpful responses.

Qlik Community Tip: Marking Replies as Correct or Helpful

Best,

Sunny

View solution in original post

45 Replies
sunny_talwar
MVP
MVP

You need both these outputs in your final table? Monthly and YTD SLA and day wise data?

Capture.PNG

gopikrishnach
Creator
Creator
Author

I created the date wise table, but I want monthly and yearly % in one table.

sunny_talwar
MVP
MVP

So all you need is the Monthly and YTD FLag table? You are not looking to show everything in one table?

gopikrishnach
Creator
Creator
Author

Yes, I need the monthly and YTD FLAG table.

Is it possible to show the information in one table.

gopikrishnach
Creator
Creator
Author

If yes, please provide the both tables.

Table1: Date,Month and Year.

Table2: Only Month and Year.

sunny_talwar
MVP
MVP

Is it possible to show the information in one table.

I think it is possible, but will take some doing...

gopikrishnach
Creator
Creator
Author

Okay. Presently I want monthly and YTD FLAG.

sunny_talwar
MVP
MVP

Check this out

Capture.PNG

gopikrishnach
Creator
Creator
Author

In my actual data, I have different type of task name like Task_1 , Task_1_Extract and Task 1. I used purge char and keep char but it is showing separate SLA % Values. I want to display those information in one row.can you please help me.