Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
vikasmahajan

How to create summary from attached data module

Dear All,

I have following data model , Which is linked with cost centers using qualify we have attached more than 20 opportunity like this now here my requirement is create a summary like this

Opportunity            Charges

-------------------       ----------------

Opportunity1          545.1

Opportunity2           538.

.

.

.

-------------------------------------

Total                      1083.1

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
16 Replies
varshavig12
Specialist
Specialist

This is what you want,

Right ?

vikasmahajan
Author

Right ? But you removed table names in script without removing tables names will it possible ?

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
varshavig12
Specialist
Specialist

Do you mean that you don't want to join the tables ? Then i guess we need to  use Qualify

And do you have cost center in your master table.

Coz it is not there in the excel, but do exist in your data model.

vikasmahajan
Author

yes it  is linked into original data model.

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
varshavig12
Specialist
Specialist

Something like this:

But this becomes too complicated,

Don't you think so ?

varshavig12
Specialist
Specialist

Oh then i guess, Sunny can help you in better way.

qliksus
Specialist II
Specialist II

May be something like this

Script :

QUALIFY * ;
UNQUALIFY Key,Charge;

Opportunity1:
LOAD
     [Cost Center] as Key,
     [Cost Center],
     Hostname,
     UpdateStatus,
     Manager,
     Application,
     Env ,
     Charge
   
    
FROM
[OpportunityData.xlsx]
(ooxml, embedded labels, table is Opportunity1);


Opportunity2:

LOAD
     [Cost Center] as Key,
     [Cost Center],
     Hostname,
     UpdateStatus,
     Manager,
     Application,
     Env ,
     Charge
    
FROM
[OpportunityData.xlsx]
(ooxml, embedded labels, table is Opportunity2);

QUALIFY * ;
UNQUALIFY Key,Charges,Opportunity1;

load 
      'Opportunity1' as Opportunity1,
      Charge as  Charges,
       Key
Resident Opportunity1 ;

load 
     'Opportunity2' as Opportunity1,
      Charge as  Charges,
     Key
Resident Opportunity2 ;


DROP Field Charge ;