Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
bhuprakash
Creator II
Creator II

Making Pivot from different files with same column

Dear all,

Could you please help me to get the data in below format because when I am loading the data then it is adding the counts at one place but I need it country wise. I have separate file for all countries and there is no column of country in file.

er.png

1 Solution

Accepted Solutions
devarasu07
Master II
Master II

Hi,

we can build the report we need to excel source file, but u can also try to add country and concatenate them as one fact refer below script.

create pivot table chart,

dimension

[Current State]

Country

(after adding try to enable check box for "always fully expanded" chart property presentation tab and country field u have to transpose Country from row to column )

Measure:

=Count([Lead Code])

Fact:

//IndonesiaDemoFarm:

LOAD 'Indonesia' as Country,

[Lead Code],

    [Assigned To],

    [User ID],

    [Creation Date],

    [Current State]

FROM

(ooxml, embedded labels, table is [Indonesia DemoFarm]);

Concatenate

//MalaysiaDemoFarm:

LOAD 'Malaysia' as Country,

[Lead Code],

    [Assigned To],

    [User ID],

    [Creation Date],

    [Current State]

FROM

(ooxml, embedded labels, table is [Malaysia Demo Farm]);

Concatenate

//PhilippinesDemofarm:

LOAD Country,

    [Lead Code],

    [Assigned To],

    [User ID],

    [Creation Date],

    [Current State]

FROM

(ooxml, embedded labels, table is [Philippines Demofarm]);

Concatenate

//VietnamDemoFarm:

LOAD

'Vietnam' as Country,

[Lead Code],

    [Assigned To],

    [User ID],

    [Creation Date],

    [Current State]

FROM

(ooxml, embedded labels, table is [Vietnam DemoFarm]);

View solution in original post

5 Replies
Anil_Babu_Samineni

We can make calc. Dimension but not really sure how you want to split each

ValueList('Indonesia', 'Malaysia', 'Philippines', 'Vietnam')

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
devarasu07
Master II
Master II

Hi,

we can build the report we need to excel source file, but u can also try to add country and concatenate them as one fact refer below script.

create pivot table chart,

dimension

[Current State]

Country

(after adding try to enable check box for "always fully expanded" chart property presentation tab and country field u have to transpose Country from row to column )

Measure:

=Count([Lead Code])

Fact:

//IndonesiaDemoFarm:

LOAD 'Indonesia' as Country,

[Lead Code],

    [Assigned To],

    [User ID],

    [Creation Date],

    [Current State]

FROM

(ooxml, embedded labels, table is [Indonesia DemoFarm]);

Concatenate

//MalaysiaDemoFarm:

LOAD 'Malaysia' as Country,

[Lead Code],

    [Assigned To],

    [User ID],

    [Creation Date],

    [Current State]

FROM

(ooxml, embedded labels, table is [Malaysia Demo Farm]);

Concatenate

//PhilippinesDemofarm:

LOAD Country,

    [Lead Code],

    [Assigned To],

    [User ID],

    [Creation Date],

    [Current State]

FROM

(ooxml, embedded labels, table is [Philippines Demofarm]);

Concatenate

//VietnamDemoFarm:

LOAD

'Vietnam' as Country,

[Lead Code],

    [Assigned To],

    [User ID],

    [Creation Date],

    [Current State]

FROM

(ooxml, embedded labels, table is [Vietnam DemoFarm]);

bhuprakash
Creator II
Creator II
Author

Thanks a lot Devarasu and Anil. It is working perfectly.

devarasu07
Master II
Master II

Hi,

Close this thread by marking as helpful and correct. thanks

bhuprakash
Creator II
Creator II
Author

Dear, Only Helpfull is coming in list. Correct Answer is not coming.