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

Announcements
Discover the Trends Shaping AI in 2026: Register Here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Complex crosstable conversion

Hi all,

I needed some help in converting a payslip into a linear table. Currently this is the table I have in Excel:

160897J BloggsDep  1233 R979   
Net1199.68Run date 23/11/12 (21/10/12 - 17/11/12)
Basic 160.0000@ 8.84001414.4
Basic@1.5   2.0000@ 13.260026.52
TOTAL GROSS PAY1477.36
Gross YTD13190.86Prev emp pay0
Taxable YTD13190.86Prev emp tax0
Tax YTD1515.2
WPBP - LA pay13190.86
160898A CloggsDep  1233 R979   
Net2323.23Run date 23/11/12 (21/10/12 - 17/11/12)
Basic 160.0000@ 8.84001213.4
Basic@1.5   2.0000@ 13.260026.52
TOTAL GROSS PAY1477.36
Gross YTD13190.86Prev emp pay0
Taxable YTD13190.86Prev emp tax0
Tax YTD1515.2
WPBP - LA pay13190.86
160899M BobbsDep  1233 R979   
Net4535.76Run date 23/11/12 (21/10/12 - 17/11/12)
Basic 160.0000@ 8.84001414.4
Basic@1.5   2.0000@ 13.26005345.8
TOTAL GROSS PAY1477.36
Gross YTD13190.86Prev emp pay0
Taxable YTD13190.86Prev emp tax0
Tax YTD1515.2
WPBP - LA pay13190.86

I want to convert it into something like this:

NetBasic @ 8.8400Basic@1.5@ 13.2600Gross YTDTax YTDWPBP - LA payPrev emp payPrev emp taxTOTAL GROSS PAY
160897J Bloggs1199.68160.00001414.4   2.000026.5213190.861515.213190.86001477.36
160898A Cloggs2323.23160.00001213.4   2.000026.5213190.861515.213190.86001477.36
160899M Bobbs4535.76160.00005345.8   2.000026.5213190.861515.213190.86001477.36

Message was edited by: sabah dada

1 Solution

Accepted Solutions
arsal_90
Creator III
Creator III

Hi Sabah

I used the excel that you provided all i do some thing in the Transformation. So sabah can u please refer this post as Answer for other people help. And if u have any other query then let me know.

Thanks & regards

Muhammad

View solution in original post

14 Replies
arsal_90
Creator III
Creator III

can u provide me the excel file

Not applicable
Author

Please find attached the excel...

arsal_90
Creator III
Creator III

Please find the attached file and let me know that's u want

Not applicable
Author

Muhammad,

Thank you for this. However, I have a few more questions to ask following this....

1) For the category LIEU, J.Bloggs has doesn't have any values, only A.Bloggs has a LIEU value of 3.00. If I select J Bloggs, I should not get any values. Rather it is duplicating the value as seen in the example below. 

c1.PNG.png

2) I cannot see any of my Total Gross Pay values e.g. Gross YTD, Taxable YTD,

c2.PNG.png

How can these be solved?

Many thanks for your help in advance.

arsal_90
Creator III
Creator III

Hi sabah

Basically your payslip format is too complicated please formatize your pay slip format because in this format it can't be resolved by cross table. But i will try else if you can formatize a standard pattern for this then it will be good

Not applicable
Author

Hi Muhammad,

I agree with you. But unfortunately I can't change the format of the payslip. There are many thousands of payslips that come in each month, so i will need to work with this format.

Ideally I wanted to format the payslip in a different manner, which would make it simpler.

Not applicable
Author

Have you tried editing the payslips in the Load Wizard (Enable Transformation Step)?

Cheers,

Lucas

arsal_90
Creator III
Creator III

ok tell me what the output result u want from that. please let me according to that excel file that u provided and also let me what fields is neccessary or what is not

Not applicable
Author

Lucas,

I have yes. I have tried to split the payslip into two. Employee Details and Data. But not obtaining the correct results..

Employee_Details:

LOAD @1 as EmployeeID,

     @2 as EmployeeName

FROM

[Copy of Payroll02ManreportsPer09.xls]

(biff, no labels, table is [ctt$], filters(

Remove(Row, Pos(Top, 2)),

Remove(Row, Pos(Top, 2)),

Remove(Row, Pos(Top, 2)),

Remove(Row, Pos(Top, 2)),

Remove(Row, Pos(Top, 2)),

Remove(Row, Pos(Top, 2)),

Remove(Row, Pos(Top, 2)),

Remove(Row, Pos(Top, 2)),

Remove(Row, Pos(Top, 2)),

Remove(Row, Pos(Top, 2)),

Remove(Row, Pos(Top, 2)),

Remove(Row, Pos(Top, 3)),

Remove(Row, Pos(Top, 3)),

Remove(Row, Pos(Top, 3)),

Remove(Row, Pos(Top, 3)),

Remove(Row, Pos(Top, 3)),

Remove(Row, Pos(Top, 3)),

Remove(Row, Pos(Top, 3)),

Remove(Row, Pos(Top, 3)),

Remove(Row, Pos(Top, 3)),

Remove(Row, Pos(Top, 3)),

Remove(Row, Pos(Top, 4)),

Remove(Row, Pos(Top, 4)),

Remove(Row, Pos(Top, 4)),

Remove(Row, Pos(Top, 4)),

Remove(Row, Pos(Top, 4)),

Remove(Row, Pos(Top, 4)),

Remove(Row, Pos(Top, 4)),

Remove(Row, Pos(Top, 4)),

Remove(Row, Pos(Top, 4)),

Remove(Row, Pos(Top, 4))

));

Data:

LOAD

  @1 as Fields,

      @2 as Data

FROM

[Copy of Payroll02ManreportsPer09.xls]

(biff, no labels, table is [ctt$], filters(

Remove(Row, Pos(Top, 1)),

Remove(Row, Pos(Top, 12)),

Remove(Row, Pos(Top, 22))

));