Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Remco
Contributor III
Contributor III

Combine the results of 2 Aggr output

Hello all!

I am struggling with the next, I have an output from

=

aggr(

Min(
{<
$(v_SA_Forecast_A) ,
COUNTRYCODE = {$(vFilterCountryCode)},
FLEETNAME = {$(vFilterFleetName)}
>}

EXPECTEDSALESYEAR), EXPECTEDSALESYEAR)

 

That returns perfectly the years. But I want to have the combined distinct values from the next set where only my filter is now Forecast_B instead of A.  So in fact, I want to combine the two outputs and ofcourse only see the distinct values. A tried a lot but can't work it out. Any suggestions?

 

Thanks!

Labels (3)
1 Solution

Accepted Solutions
Remco
Contributor III
Contributor III
Author

Shoot! It worked with the '+', thanks!

View solution in original post

3 Replies
QFabian
Specialist III
Specialist III

Hi @Remco , maybe you need to do an intersection of data sets resulting from set analysis. Check the documentation about it

* Intersection. This binary operation returns a set consisting of the records that belong to both of the two set operands.

https://help.qlik.com/en-US/qlikview/May2022/Subsystems/Client/Content/QV_QlikView/ChartFunctions/Se...

example :

=

aggr(

Min(


{

<
$(v_SA_Forecast_A) ,
COUNTRYCODE = {$(vFilterCountryCode)},
FLEETNAME = {$(vFilterFleetName)}
>

*

<
$(v_SA_Forecast_B) ,
COUNTRYCODE = {$(vFilterCountryCode)},
FLEETNAME = {$(vFilterFleetName)}
>

}

EXPECTEDSALESYEAR), EXPECTEDSALESYEAR)

 

QFabian
Remco
Contributor III
Contributor III
Author

Thanks Fabian, I will check the source. For the moment the example does not work, no values returned.

Remco
Contributor III
Contributor III
Author

Shoot! It worked with the '+', thanks!