Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to use ranked objects obtained from one table in other charts?

Hello

The situation is that i obtain the top ranked products in one table and now i want to represent each ranked product figures in other charts and put it in a report.

Example: I have the top 10 products ranked like the picture below.

table.JPG

Now i want to represent the sales and other figures corresponding to each of the ranked products on other graphs/charts, one chart per ranked product in a report like below:

chart.JPG

Therefore i need to generate 10 graphs (one graph per product per page) like the above in a report.

Can somebody please advice on how this can be done and by which method.

Thanks in advance,

Rajiv

6 Replies
Anonymous
Not applicable
Author

Rajiv,

This is waht you can try.  In your bar chart, add calculated dimension using the same expression as you use in the table for Rank.  It may be more complex, but the logic should be the same.  Next, use trellis for this bar chart.

qliksus
Specialist II
Specialist II

I dont know what is ur actual requirement but if u want to generate the report for the product u have ranked

filter ur chart  based on that product u have to do this 10 times as u said u want to generate 10 reports

for 10 different products

Not applicable
Author

Hello Micheal,

I used the trellis in the chart dimension and made use of the ranked expression by selecting descending sort by expression in the sort section and the result is like below.

trellis.JPG

Its indeed something helpful, however i need to present each graph in a page on a report, is this possible? because if i do put this one whole graph in one page on a report, we cannot intepret rightly the figures as the axes are same.

Thanks again for the hint about the trellis

Rajiv

Not applicable
Author

hello qliksus,

infact i want to generate the 10 graphs in 10 different pages in only one report.

Your idea will be my last last last resort

regards,

Rajiv

Anonymous
Not applicable
Author

Printing one graph on each page, with one product per page, and in one physical file - it can't be done without a macro.  (I'll be glad to find I'm wrong.)

The macro should define the ranked products, select one product at a time, in a loop, and copy the chartinto the document after each selection.  Probably MS Word document is the most convenient as an output for this purpose.

Not applicable
Author

i'd be glad too if you could be wrong Micheal..

Am actually working on a macro which puts the ranked models obtained in an array and then i put that array in a randomly generated field for me to loop on that field in the report.

It took me lots of time to create that macro as its the first time am working with it. I need to run the macro before outputing on pdf and allow the loop on that field. It seems working.. hehe..