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: 
khasimvali85
Creator II
Creator II

How to Create Vriable for pivot table and i select one calender date display 3 previous dates

Hi,

its Urgent

10 Replies
tresesco
MVP
MVP

Say your expression in pivot table is like: Sum(Sales). Then rewrite it like:

Sum({<DateField={">=$(=Date(Max(DateField)-2)) <=$(=Date(Max(DateField)))"}>}Sales)

khasimvali85
Creator II
Creator II
Author

Hi,

Thanks your Suggession

But Using variable i want to select Calender date,

EX: i wanna select One Date from Calender Date Like 02/06/2014 (This is Calender Object)

My OutPut Is:  wanna display Previous 3 dates In Pivot Tavle

30-May-1431-May-1401-Jun-14
TotalCustomersTotal %Total CustomersTotal %TotalCustomersTotal %
1106Rajendra0.40%1051Ravi0.50%1101Sekhar3.10%
1811Raja8.50%1718Rajesh2.00%1716Siva2.70%
Total27692817

Thanks

Khasim.

tresesco
MVP
MVP

Try to post your sample qvw.

ashfaq_haseeb
Champion III
Champion III

Hi.

This question was answered here.

http://community.qlik.com/thread/121220

and here

http://community.qlik.com/thread/121357

try not to duplicate content.

If you can share sample app with required output it would be better.

hope it helped.

Regards

ASHFAQ

khasimvali85
Creator II
Creator II
Author


Hi ,

Previous 3 dates Showing But i Need Using Variables

I wanna select One date Dinamically, show previous 3 dates will show above i given table Like.

My system no rights to add Any Application.

Thanks

Khasim.

ashfaq_haseeb
Champion III
Champion III

Hi,

The attached application does the same.

Do one thing go home today and attach your sample app.

Regards

ASHFAQ

khasimvali85
Creator II
Creator II
Author


HI,

Sure i will Send i have created one Sample Application in my lap.

Thanks

Khasim.

khasimvali85
Creator II
Creator II
Author

Hi,

I am Sending Sample QVW File

Thanks

Khasim.

khasimvali85
Creator II
Creator II
Author

Hi,

Where is the option to upload a file, i am not able to see.