Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
wanyunyang
Creator III
Creator III

Uncorrelated fields

Hi guys,

I have a model with two tables like:

Date       ----       Date

Type                    Sales 

 

Table1 has Date and Type, Table2 has Date and Sales, Date are linked together, but there's no correlation between Type and Sales.

 

But in the layout, if I put Type as a filter and made selections in there, Sales numbers will change, which shouldn't be since they don't have correlations. How can I make Sales not changing with Type

1 Solution

Accepted Solutions
Channa
Specialist III
Specialist III

=sum ( {<Type = >} Sales)

Channa

View solution in original post

6 Replies
Channa
Specialist III
Specialist III

=sum ( {<Type = >} Sales)

Channa
wanyunyang
Creator III
Creator III
Author

Hi Channa,

 

Thanks for reply! Is there a way to do this from script? I'm only making an example here with Sales, which is a measure. Actually in my model there are dimensions with this issue as well.

Channa
Specialist III
Specialist III

yes you need to do this in script editor only

 

Channa
wanyunyang
Creator III
Creator III
Author

I mean if not Sales (a measure which can use set analysis), suppose two dimensions Document and Type, how should I write the expression?

Channa
Specialist III
Specialist III

Same as above
Type=, Document =
Channa
pradosh_thakur
Master II
Master II

Hi @wanyunyang 

 

I think joining two tables based on date is not quite the right way in my opinion. Unless you have no key and you have to do it as @channa suggested use " field = " in the set analysis.

 

-Pradosh

Learning never stops.