Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
hopkinsc
Partner - Specialist III
Partner - Specialist III

set analysis on data island

hi, i have a data island that contains a key field, the same key field exists in another island-named differently (i do not want them to link).

the data in one table has been reduced and the data in the island holds the full data set.

i have a straight table that i want the reduced data value of field A to show against the full data set of the same field value in the island, if that makes sense.

example.

ReducedTable

Dimension,ReducedTotal

NameA, 100

NameB, 50

NameC, 200

FullTable - Data Island

Dimension2, FullTotal

NameA, 1000

NameB, 500

NameC, 20000

at the moment the result of the straight table is..

Dimension  ReducedTota      FullTotal

NameA                     100          21500

NameB                      50           21500

NameC                    200          21500

this is obviously because there is no link between the tables (which is correct)

The result i want is..

Dimension  ReducedTotal     FullTotal

NameA                     100         1000

NameB                      50           500

NameC                    200          20000

Can anyone help to achieve this?

i have tried the simple way of

Sum{<Dimension=Dimension2>}FullTotal

any help would be appreciated

example attached

1 Solution

Accepted Solutions
Clever_Anjos
Employee
Employee

Checking your app, you need that Dimension2 corresponds to the Dimension1 aggregation of graph? It´s not possible using Set Analysis,

Set Analsys cube expansion is calculated before the aggregation of the graph

you need this

SUM( if ( Dimension = Dimension2, FullTotal ))

View solution in original post

6 Replies
Clever_Anjos
Employee
Employee

Please try

Sum( {<Dimension=P(Dimension2)>} FullTotal)

hopkinsc
Partner - Specialist III
Partner - Specialist III
Author

hi, thanks for the reply, that gives the same output unfortunately. 21500 on each line

Clever_Anjos
Employee
Employee

Checking your app, you need that Dimension2 corresponds to the Dimension1 aggregation of graph? It´s not possible using Set Analysis,

Set Analsys cube expansion is calculated before the aggregation of the graph

you need this

SUM( if ( Dimension = Dimension2, FullTotal ))

Clever_Anjos
Employee
Employee

Further reading A Primer on Set Analysis

hopkinsc
Partner - Specialist III
Partner - Specialist III
Author

thanks very much, perfect

Clever_Anjos
Employee
Employee

Good to read that