Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
krishna20
Specialist II
Specialist II

Passing variable in Pivot table

Hi Friends,

Is it possible to pass a variable in pivot table.My requirement is I'm having a year field CL_Year.

I need to give input value in the input box by creating variable and i'm having pivot table which is having dimension CL_year and CL_TW_Year .

For Eg;

When i give input value as 1990 in the input box, the data of 1990 could be shown in pivot table.

I know  this process is possible in straight table. How could be this done in pivot table?

Regards

Krishna

6 Replies
krishna20
Specialist II
Specialist II
Author

Hi Friends,

Any Idea ?!!

Anonymous
Not applicable

Not clear, sorry...

Anonymous
Not applicable

Hi ,

First you create a variable vYear

Then create a input box and pass that variable to inputbox

Create a table and add an expressiion using variable .

ex: sum( {$<Year = {$(#vYear)}>} Sales ).

hope this will help you

Thanks

krishna20
Specialist II
Specialist II
Author

Hi ,

My requirement is I need to pass a year filed in the input box.

Ex:

FROM Year [Input Box]   To Year [Input Box]

When inputs given in this input boxes.


The pivot table data need to shown between those years.

jagan
Luminary Alumni
Luminary Alumni

Hi Krishna,

Assign a variable to the Input box and use the below expression in the pivot table

variable Name = vInputYear

Sum( {$<CL_Year= {$(=vInputYear)}>} Sales )


Regards,

Jagan.

hariprasadqv
Creator III
Creator III

Fallow Jagan's View/