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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Combine Tables

Hi,

I would like to know how to do this in Qlikview. I have to tables, Sales and Discount.. I got the Sales Extended Price by Left joining the Discount table to Sales Table while the Discount Extended Price by Inner join. the problem is how  can I do this in 1 qlikview file??

Forums.png

Labels (1)
15 Replies
jvitantonio
Specialist III
Specialist III

What do you mean with 1 qlikview file? Do you mean a QVD file?

Not applicable
Author

No, in 1 schema

jvitantonio
Specialist III
Specialist III

If you join the tables, Qlik automatically will "unify" the tables. Can you post your application?

Not applicable
Author

that is not the solution because extended_price which i used to to get the Sales extended price and Discount Extended Price is just one field..

jvitantonio
Specialist III
Specialist III

Again, can you please attach your application so I can work on it?

Not applicable
Author

my application contains confidential information

CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Can you post the structure(Table definition) of the tables?

Celambarasan

nam
Former Employee
Former Employee

Can you post the headings in both tables , you may just need a left join

Not applicable
Author

try using a left join instead of just a join. Should pull all discounts linked to sales, but will not limit the sales if it does not have a discount.

If you want a summary that shows ONLY the sales with discount, try something like

sum(if(isnull(discount) or discount=0,0, sales)-discount)