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

How to break a relationship between tables

Dears.

I have two tables that have a common field that join both databases, but I have a problem in a graphic, because I need that the calculation don't filter the data in the second table, I need the calculation base on the total registers, but as normally works is filtered, so the question is how can I break a relationship only to create one graphic?

Is it Possible?

BR

9 Replies
sunny_talwar

Rename the field name which connect the two tables in one of the two tables:

LOAD FieldName1,

          CommonFieldName

FROM Source1

LOAD FieldName2

          CommonFieldName as CommonFieldName2

FROM Source2

Not applicable
Author

Hi Wilmer,

Two tables join where there are similar naming conventions between them. There are different tactics one can use such to avoid the joining between two or multiple tables.

One can change field names in 3 ways As


Use 'AS' Qualifier while loading tables 


FieldName as [Field Name] www.KarthikQlikiview.Com Mail ID:  Ex: Category: Load CategoryID, CategoryName as [Category Name],


Use Alias


Alias Qualifier Before loading the table  Alias FieldName as [Field Name]; Ex: Alias CategoryName as [Category Name]; Category: Load CategoryID, CategoryName, .......


Use Rename


Rename  We use Rename Qualifier After loading the table  Rename Field CategoryName to [Category Name]; Ex: Category: Load CategoryID, CategoryName, ....... Rename Field CategoryName to [Category Name];


Hope it helps!!!!!!!!!!!

Not applicable
Author

Thanks for your help, according to my understanding with your proposed solution I break definitely the link, but I only need that the relationship be break only to make a operation in a graph.

is possible?

Not applicable
Author

Thanks for your help, according to my understanding with your proposed solution I break definitely the link, but I only need that the relationship be break only to make a operation in a graph.

is possible?

sunny_talwar

Would you be able to share a sample to look at your issue?

Anonymous
Not applicable
Author

Did you try to use set analysis?

Something like <Fieldname>= or the P-function to override selections?

Regards

Norbert

Chanty4u
MVP
MVP

Not applicable
Author

Use NOCONCATENATE OPTION BETWEEN THE TABLES 

TO BREAK TWO TABLES....

Not applicable
Author

I have two tables like this:

    Table 1

WO IDSite IDStatusDate
123SMU000Closed1-Apr-16
3456SMU001Closed1-Apr-16
678SMU003Closed3-Apr-16
3456SMU000Closed5-Apr-16
1526SMU002Cancelled

7-Apr-16

Table 2

   

Site IDRegionProject
SMU000CoastP1
SMU001EastP2
SMU002SouthP3
SMU003NorthP4
SMU004South P2
SMU005CoastP3
SMU006CenterP1

I want to make the calculation How many work order per site, so is easy formula Count ([WO ID])/Count([Site ID])

The problem is that the two tables are join through Site ID Field, but the calculation that I want to make needs to consider WO ID from the table 1 and Site ID ONLY form the table two, but if they are join for this calculation any filter affect the final result.