Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
manish_kumar
Partner - Contributor III
Partner - Contributor III

Pivot Table Aggregation

I have a data along two dimensions having date (Date1, Date2) (attached data).

I need the data in the first column whenever the data flow in Date2.

Please refer the attachement.

5 Replies
petter
Partner - Champion III
Partner - Champion III

It is possible to get a solution like you hope for:

2018-07-17 15_45_58-Microsoft Edge.png

2018-07-17 15_46_34-Microsoft Edge.png

Had to let the associative model help me to shift the columns to the left by using this helper table... I know ... it could have been done programmatically but I just hacked this together - so feel free to code a more elegant solution.

2018-07-17 15_46_49-Microsoft Edge.png

manish_kumar
Partner - Contributor III
Partner - Contributor III
Author

HI Petter

Thanks for the solution.

But I am stuck in making the columns dynamic. Is there any way out to make the combinations Dynamic because rows and columns will increase on regular basis and it will be very difficult to define the combinations every time in inline table.

petter
Partner - Champion III
Partner - Champion III

You mean the QY table?

manish_kumar
Partner - Contributor III
Partner - Contributor III
Author

Yes QY table..

petter
Partner - Champion III
Partner - Champion III

2018-07-19 18_16_57-QlikView x64 - Evaluation Copy - [C__Users_pts_Documents_Pivot.qvw_].png

2018-07-19 18_17_29-Edit Script [C__Users_pts_Documents_Pivot.qvw_].png