Skip to main content
Announcements
YOUR OPINION MATTERS! Please take the Qlik Experience survey you received via email. Survey ends June 14.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Min of expression in pivot table

Hi Qlikers,

i have pivot table with two dimensions as name and date, i have expression then i have dragged the date above the expression so the chart will become (Please find the attachment).

i want another expression in same table which should display min of the above expression for all the dates.

Please find the attached QVW.

Thanks& Regards

Sampth Botla

13 Replies
avinashelite

Hi Sampath,

Please post your qvw file with sample data.

Anonymous
Not applicable
Author

Hi,

I am not sure if I understand correctly but below script may help you.

Expression 1 = Sum (Sales)

Expression 2 = Min(Aggr(Sum (Sales), Buyer, Date))

SunilChauhan
Champion II
Champion II

aggr(Min(Your expression here),DateField)

DateField---->in image  19 May,21 May etc

hope this helops

Sunil Chauhan
Not applicable
Author

Please Find the Attached QVW to original post.


SunilChauhan
Champion II
Champion II

in place of Date in dimension

use

=Date(aggr(Min(ExecDate),Name),'DD-MMM')

and leave Expression  as Sum(Qty)

hope this helps

Sunil Chauhan
avinashelite

Hi Sampath,

To add clarity i have add few more data.

Please find the attachment for solution, hope this is what ur looking for.

Not applicable
Author

i want pivot table with name on left side and exec date at the top and i want expression is sum(qty), i want to display min(sum(qty)) to all the dates in another expression.

avinashelite

can you please share me the format.

Not applicable
Author

Please find the attached QVW file.