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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
zarmoton
Creator
Creator

create "intelligent" join table , but not on all tables ...

Hello,

Help ! I have issues with the different type of join on differents table:

It's seems simple, but impossible for me to find the solution:

I just want to retrieve couples of information just from the referential table, and don't want to have some link on data table

I have 2 tables "referentials", and 2 tables of data like that

The 2 tables of referentials

Refsales

idsalesNameFirstname
1GatesBill
2DupontPaul
3ObamaBarak

Refclients

idclientclientNameCountryidsales
APorscheFR1
BRenaultUS1
CFordFR2

and 2 tables tables of data:

Revenues:

idsalesidclientAmount Revenues
1A10
2B3

Expenses

idsalesidclientAmountExp
1B5
2C20
2A30

What i would like to see is:

3 Tables or pivot table:
REVENUES
idsalesFirstnameName idclientclientName Country Amount Revenues
1BillGatesAPorscheFR10
2PaulDupontBRenaultUS3
EXPENSES
idsalesFirstnameName idclientclientName Country Amount Expenses
1BillGatesBRenaultUS5
2PaulDupontAPorscheFR30
2PaulDupontCFordFR20
REFERENTIAL CLIENTS
idclientclientNameCountryidsalesFirstnameName
APorscheFR1BillGates
BRenaultUS1PaulDupont
CFordFR2PaulDupont

attach is the excel file for the input data, and what i have try to do it in QV.

Thank you for your help

6 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Have a look at the attachment.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
zarmoton
Creator
Creator
Author

Hi,

thank you for your help, but it's ok for the first two table (revenue and exepnses)

and not ok for referential clients because in your table now there is 2 rows of id client client A with 2 names, which is wrong.

it should be only:

REFERENTIAL CLIENTS
idclientclientNameCountryidsalesFirstnameName
APorscheFR1BillGates
BRenaultUS1PaulDupont
CFordFR2PaulDupont

thk you Kaushik

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     I guess that is the same table as your expense table except the expense amount and the sequence of the table.

     You can do this and you will get what you want.

     Copy the expense table and then go to presentation and click on Expense Amount Expression and Click on Hide.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
zarmoton
Creator
Creator
Author

sorry, but i don't really understand your answer,

can you post the qvw as example

Clearly, i have done a simple example here, but my idea is not to merge the table

i'm looking for an example of how to retrieve information coming from referential, when i have a lot of data tables

thk yu

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Find the attachment.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
zarmoton
Creator
Creator
Author

Hello,

in fact, not really good

why ?

In the table data: Expenses and Revenues: idsales is the sales who have done the revenues or the expenses

But in Referential clients: id sales is the sales in charge of the relation with the client.

So in your example, you have retrieve on the referential client , the id of the sales with name/firstname coming from the tables expenses. which is not good.

Have a look in details on my first post, of the exact expected result that i'm looking for.

Regards,