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: 
Anonymous
Not applicable

Mapping Load

Hey community,

i have this script and i write "A, Jan, 100"  twice  i try to understand if i can see both of the line together at table view.

the only way i can see the total of them is at Pivot table.

but i want to see germany jan twice

Thx

Capture1.JPG

CustomerTable:

Mapping Load * Inline

[

CustomerID, Country

A, Germany

B, France

C, Italy

D, Poland

E, Spain

Z, UK

H, ISRAEL

A, Germany ];

Sales:

Load *,

ApplyMap('CustomerTable', CustomerID, 'Unkown Country ') As CustomerCountry

Inline

[

CustomerID, Month, Sales

A, Jan, 100

A, Jan, 100

B, Jan, 200

C, Jan, 300

D, Feb, 150

E, Mar, 200

F, Apr, 100

A, May, 140

D, May, 80

E, May, 100

F, Jun, 150

Z, Apr, 100

];

1 Solution

Accepted Solutions
sunny_talwar

May be add a new field using RowNo() which makes both instances of Jan unique:

CustomerTable:

Mapping Load * Inline

[

CustomerID, Country

A, Germany

B, France

C, Italy

D, Poland

E, Spain

Z, UK

H, ISRAEL

A, Germany ];

Sales:

Load *,

  RowNo() as SNo,

  ApplyMap('CustomerTable', CustomerID, 'Unkown Country ') As CustomerCountry

Inline

[

CustomerID, Month, Sales

A, Jan, 100

A, Jan, 100

B, Jan, 200

C, Jan, 300

D, Feb, 150

E, Mar, 200

F, Apr, 100

A, May, 140

D, May, 80

E, May, 100

F, Jun, 150

Z, Apr, 100

];


Capture.PNG

View solution in original post

4 Replies
sunny_talwar

May be add a new field using RowNo() which makes both instances of Jan unique:

CustomerTable:

Mapping Load * Inline

[

CustomerID, Country

A, Germany

B, France

C, Italy

D, Poland

E, Spain

Z, UK

H, ISRAEL

A, Germany ];

Sales:

Load *,

  RowNo() as SNo,

  ApplyMap('CustomerTable', CustomerID, 'Unkown Country ') As CustomerCountry

Inline

[

CustomerID, Month, Sales

A, Jan, 100

A, Jan, 100

B, Jan, 200

C, Jan, 300

D, Feb, 150

E, Mar, 200

F, Apr, 100

A, May, 140

D, May, 80

E, May, 100

F, Jun, 150

Z, Apr, 100

];


Capture.PNG

Anonymous
Not applicable
Author

Have you tried a Straight Table, as opposed to a Pivot Table ?

veidlburkhard
Creator III
Creator III

Hi David,

the best way will be to use Sunny's idea and put it into a straight table in UI:

TEST.jpg

Hope this helps

Burkhard

Anonymous
Not applicable
Author

Hey @bill.markham yes i did its show me the result on the pivot table also i try to see the result on the regular table.