Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

In the table shown , how to convert the column values (Mumbai,Chennai,Nagpur,Tamilnadu) into respective rows ?

Capture.PNG

Thanks.

3 Replies
sunny_talwar

Read about CrossTable Load: The Crosstable Load

HTH

Best,

Sunny

Not applicable
Author

Try this

Tab1:

CrossTable(Place, [Hire (In figures)])

LOAD [Type of Source] as TYPE_OF_SRC,

     Mumbai,

     Chennai,

     Nagpur,

     TamilNadu

FROM

[QVC - 174139.xlsx]

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

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

Remove(Col, Pos(Top, 3)),

Remove(Col, Pos(Top, 4)),

Remove(Col, Pos(Top, 5)),

Remove(Col, Pos(Top, 6)),

Remove(Row, Pos(Top, 16))

));

Tab2:

CrossTable(Place, [Hire (In %)])

LOAD [Type of Source] as TYPE_OF_SRC,

     Mumbai,

     Chennai,

     Nagpur,

     TamilNadu

FROM

[QVC - 174139.xlsx]

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

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

Replace(3, left, StrCnd(null)),

Replace(5, left, StrCnd(null)),

Replace(7, left, StrCnd(null)),

Replace(9, left, StrCnd(null)),

Remove(Col, Pos(Top, 8)),

Remove(Col, Pos(Top, 6)),

Remove(Col, Pos(Top, 4)),

Remove(Col, Pos(Top, 2)),

Remove(Row, Pos(Top, 16))

));

Final:

LOAD

TYPE_OF_SRC as [Type of Source],

Place,

[Hire (In figures)]

Resident Tab1;

Join

LOAD

TYPE_OF_SRC as [Type of Source],

Place,

[Hire (In %)]

Resident Tab2;

DROP Tables Tab1,Tab2;


Regards,

KKR