Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
marcel_olmo
Partner Ambassador
Partner Ambassador

Cross table with repeating dimensions challenge

Hi guys,

I have to read a bunch of excels with a format like this :

Ex1.png

If I do a regular cross table, this is my result :

ex2.png

And I'd like to get the same result but with the main dimensions (Customer Id, Shipment Id, Activity Id and Subactivity Id) filled. How could I do this?

I've attached a little example of what I'm trying to do above.

Best regards, Marcel.

1 Solution

Accepted Solutions
sunny_talwar

Try this

CrossTableExample:

CrossTable(Dimension, Number, 5)

LOAD [Customer Id],

    [Shipment Id],

    [Activity Id],

    [SubActivity Id],

    [Family Id],

    [Amount Jan],

    [Units Jan],

    [Amount Feb],

    [Units Feb]

FROM

ExampleCrossTable.xlsx

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

Replace(1, top, StrCnd(null)),

Replace(2, top, StrCnd(null)),

Replace(3, top, StrCnd(null)),

Replace(3, top, StrCnd(null)),

Replace(4, top, StrCnd(null))

));

View solution in original post

2 Replies
sunny_talwar

Try this

CrossTableExample:

CrossTable(Dimension, Number, 5)

LOAD [Customer Id],

    [Shipment Id],

    [Activity Id],

    [SubActivity Id],

    [Family Id],

    [Amount Jan],

    [Units Jan],

    [Amount Feb],

    [Units Feb]

FROM

ExampleCrossTable.xlsx

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

Replace(1, top, StrCnd(null)),

Replace(2, top, StrCnd(null)),

Replace(3, top, StrCnd(null)),

Replace(3, top, StrCnd(null)),

Replace(4, top, StrCnd(null))

));

marcel_olmo
Partner Ambassador
Partner Ambassador
Author

Thanka Sunny, that was what I need. Regards, Marcel.