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

Pivot table

Hi qlikers,

i have date (slider) and a pivot table with some stock data.

when i select some dates in slider for example from 10-jan to 15-jan

in pivot table we have data only from 10-jan to 12-jan ,

then i want to take min and max of date with respect to pivot table data.

then i want to find the

(stock(mindate)-stock(maxDate))/stock(mindate)

Thanks in advance.

Sampath Botla

2 Replies
Gysbert_Wassenaar

If the pivot table doesn't show some dates, then there is probably no data for those dates. Perhaps you can post an example document with some data and an explanation of what you're trying to do.


talk is cheap, supply exceeds demand
Raj11
Contributor III
Contributor III

Hi,

Try this expression in Pivot Table

=sum({<date = {"$(=min(Date))"}> Stock} - sum({<date = {"$(=max(Date))"}> Stock}/sum({<date = {"$(=min(Date))"}> Stock}

Thanks,

Niranjan M.