Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
deepakqlikview_123
Specialist
Specialist

Transformation

Hello Team,

please find attachment,

After making trasformations I am able to convert Rows to column in qlikview.

But can you please suggest how to hide null colums like F1,F2,F5,F26 in qlikview.

Thanks in advance.

Thanks

1 Solution

Accepted Solutions
its_anandrjs

Update little bit change in the script please find the load script

Hi Deepak,

Check this load statement, Main transformation in the Bold

Tmp:

LOAD

     Title,

     [CDMS AUDIT LOG Size GB],

     [CDMS WSS CONTENT Size GB],

     [CDMSLive DATABASE Size GB],

     [LOG size CDMS AUDIT LOG Size GB],

     [LOG size CDMS WSS CONTENT Size GB],

     [LOG size CDMSLive Database Size GB],

     [Server (Available Space)],

     [Application Server-II 122 (465 GB)],

     [Application Server-I 123 (465 GB)],

     [Database Server 124  (C: 1.08 TB, 😧 464 GB, E: 464 GB)],

     [Database Mirror Server 125 (C: 1.08 TB, 😧 464 GB, E: 464 GB)],

     NUM(Day(Date#(SubField(Replace(Title, 'Task Details for ', ''), ' ', 1),'DD'))) AS Day,

     Month(Date#(Capitalize(Left((SubField(Replace(Title, 'Task Details for ', ''), ' ', 2)),3)),'MMM')) AS Month,

     NUM(Month(Date#(Capitalize(Left((SubField(Replace(Title, 'Task Details for ', ''), ' ', 2)),3)),'MMM'))) AS NumMonth,

     KeepChar(Date#(SubField(Replace(Title, 'Task Details for ', ''), ' ', 3),'YYYY'),0123456789) AS Year,

     MakeDate(KeepChar(Date#(SubField(Replace(Title, 'Task Details for ', ''), ' ', 3),'YYYY'),0123456789),

           Month(Date#(Capitalize(Left((SubField(Replace(Title, 'Task Details for ', ''), ' ', 2)),3)),'MMM')),

           NUM(Day(Date#(SubField(Replace(Title, 'Task Details for ', ''), ' ', 1),'DD')))

           ) as DateField

FROM

[Task details for 3 March 2014.xlsx]

(ooxml, embedded labels, table is CDMS, filters(

Transpose()

));

Final:

NoConcatenate

LOAD * Resident Tmp  Where Len(Year) > 0;

DROP Table Tmp;

Let me know if having the problem.

View solution in original post

26 Replies
whiteline
Master II
Master II

Don't load them, remove from load statment manually.

its_anandrjs

In the transformation step you can comment them or do not load them

Eg:-

Load

//F1,

//F2,

//F3,

Fields1,

Fields2

From Location;

For Your script:-

Directory;

LOAD

     //F1,

     Title,

     //F3,

     [CDMS AUDIT LOG Size GB],

     //F5,

     [CDMS WSS CONTENT Size GB],

     //F7,

     [CDMSLive DATABASE Size GB],

     //F9,

     [LOG size CDMS AUDIT LOG Size GB],

     //F11,

     [LOG size CDMS WSS CONTENT Size GB],

     //F13,

     [LOG size CDMSLive Database Size GB],

     //F15,

     [Server (Available Space)],

     //F17,

     [Application Server-II 122 (465 GB)],

     //F19,

     [Application Server-I 123 (465 GB)],

     //F21,

     [Database Server 124  (C: 1.08 TB, 😧 464 GB, E: 464 GB)],

     //F23,

     [Database Mirror Server 125 (C: 1.08 TB, 😧 464 GB, E: 464 GB)]

     //F25,

     //F26,

     //F27

FROM

[Task details for 3 March 2014.xlsx]

(ooxml, embedded labels, table is CDMS, filters(

Transpose()

));

deepakqlikview_123
Specialist
Specialist
Author

Hi Anand,

Thanks for reply.

I am not able to retrive month from titel column.

Month(Title ) gives null calue can u please suggest.

Thanks

jagan
Luminary Alumni
Luminary Alumni

Hi,

Try like this

LOAD Title,

     [CDMS AUDIT LOG Size GB],

     [CDMS WSS CONTENT Size GB],

     [CDMSLive DATABASE Size GB],

     [LOG size CDMS AUDIT LOG Size GB],

     [LOG size CDMS WSS CONTENT Size GB],

     [LOG size CDMSLive Database Size GB],

     [Application Server-II 122 (465 GB)],

     [Application Server-I 123 (465 GB)],

     [Database Server 124  (C: 1.08 TB, 😧 464 GB, E: 464 GB)],

     [Database Mirror Server 125 (C: 1.08 TB, 😧 464 GB, E: 464 GB)]

FROM

[Task details for 3 March 2014.xlsx]

(ooxml, embedded labels, header is 1 lines, table is CDMS, filters(

Remove(Row, RowCnd(CellValue, 1, StrCnd(null))),

Transpose()

));

Regards,

Jagan.

jagan
Luminary Alumni
Luminary Alumni

Hi,

To retrieve Day, Month and Year, try like this

LOAD Title,

     [CDMS AUDIT LOG Size GB],

     [CDMS WSS CONTENT Size GB],

     [CDMSLive DATABASE Size GB],

     [LOG size CDMS AUDIT LOG Size GB],

     [LOG size CDMS WSS CONTENT Size GB],

     [LOG size CDMSLive Database Size GB],

     [Application Server-II 122 (465 GB)],

     [Application Server-I 123 (465 GB)],

     [Database Server 124  (C: 1.08 TB, 😧 464 GB, E: 464 GB)],

     [Database Mirror Server 125 (C: 1.08 TB, 😧 464 GB, E: 464 GB)],

     SubField(Replace(Title, 'Task Details for ', ''), ' ', 1) AS Day,

     SubField(Replace(Title, 'Task Details for ', ''), ' ', 2) AS Month,

     SubField(Replace(Title, 'Task Details for ', ''), ' ', 3) AS Year

FROM

[Task details for 3 March 2014.xlsx]

(ooxml, embedded labels, header is 1 lines, table is CDMS, filters(

Remove(Row, RowCnd(CellValue, 1, StrCnd(null))),

Transpose()

));

Regards,

jagan.

its_anandrjs

Add this line in the load script for Month field

You can try this for unique month values

Capitalize(SubField(Replace(Title, 'Task Details for ', ''), ' ', 2)) AS Month

deepakqlikview_123
Specialist
Specialist
Author

Hi Jagan,

I am getting output but month are not in same format

eg for Feb I am getting 2 months feb and Februry.,In year I am getting december and in day I am getting some garbage value,please suggest.

Thanks

jagan
Luminary Alumni
Luminary Alumni

Hi,

Try like this for month

Capitalize(Left(SubField(Replace(Title, 'Task Details for ', ''), ' ', 2), 3)) AS Month,

Regards,

Jagan.

its_anandrjs

Try this

     Capitalize(SubField(Replace(Title, 'Task Details for ', ''), ' ', 2)) AS Month,