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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set Analysis

Hello guys,

I have this table:

Chart.PNG

The column "PROD 5" is dynamic , this aways shows the avg of selected product and then compare with de avg of product and market in the dimension. But I have to show the avg of selected product in the markets of column "MKT".

How can I do it?

I tried to compare in set analysis something like this:

Avg(TOTAL {<PRODUCT={'$(=Only(PRODUCTCOMP))'}, MAKET={$(=Only(MAKET))}>} [SACAS/HÁ])

or

Avg(TOTAL {<PRODUCT={'$(=Only(PRODUCTCOMP))'}, MAKET={$(=Column(1))}>} [SACAS/HÁ]) (using only(MARKET) of column 1)

but isnt work...

1 Solution

Accepted Solutions
ramoncova06
Partner - Specialist III
Partner - Specialist III

Have you tried using the field you want to group by ?

something like Avg(total <Product> Sales)

sorry I am not sure I am getting what you need, can you add an example of the expected output

View solution in original post

4 Replies
beck_bakytbek
Master
Master

Hi Cintia,

try to use Resident Load; where you can use: PROD 5 / 5 , where 5 is avg of products in MKT

i hope this can help you

with kind regards

Beck

Not applicable
Author

it isnt work because the PROD 5 is dynamic selected in a list box. Sorry it was not clear. this is a pivot table, i have a prod. selected in a list box and then compare with others products in the same MKT.

look the qvw file.

ramoncova06
Partner - Specialist III
Partner - Specialist III

Have you tried using the field you want to group by ?

something like Avg(total <Product> Sales)

sorry I am not sure I am getting what you need, can you add an example of the expected output

Not applicable
Author

omg, its so simple! i almost killing myself...

Thank you so much