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: 
Not applicable

Pivot Table


Hi

I need to create a pivot table as in the attachment. The table has data for Market, Qtr, Week, Amount. I need to calculate %change. %change for Q1 09 will be equal to %over. But for Q2 09, %change will be sum of %over of Q1 and Q2 09 grouped by week. For Q3 09, %change is sum of %Over of Q1, Q2 and Q3 09 and so on.

Can anyone help on this.

Thanks

4 Replies
disqr_rm
Partner - Specialist III
Partner - Specialist III

Here you go. Is this what you are looking for?

Rakesh

Not applicable
Author

Rakesh. It is correct for Q1 qnd Q2 and the result is exactly what I want. But Q3 result is not as expected. It should be Q1 + Q2 + Q3 of %over.

Thanks

disqr_rm
Partner - Specialist III
Partner - Specialist III

I am sure this can be done on the chart as well using SET , or rowno() or NoOfRows() functions..... and tricky canculations, but it may be better to generate a separate table and link it via Link Table concept to generate such a chart. I will try some more thangs and let you know if I can come up with anything easier for you. Good luck.

Not applicable
Author

Thanks. Let me also try.