Qlik Community

QlikView Creating Analytics

Discussion Board for collaboration related to Creating Analytics for QlikView.

riceball
New Contributor

Aggr(NODISTINCT) Function Help

Hi,

I've encountered one problem when trying to use aggr() function. As shown in the attached, my expression for current product name doesn't seems to work.

Only (IF(Date(aggr(NODISTINCT MAX(Date),Channel,Country))=Date(Date),Name))

Instead of having "-", i would like my result to look like this (please see highlighted cells).This column will reflect my latest product name based on the latest date, group by channel (A/B):

Sample.png

Please advise. Appreciate your help on this

1 Solution

Accepted Solutions

Re: Aggr(NODISTINCT) Function Help

You can use these expressions:

date(max(total <Channel,Country> Date),'DD/MM/YYYY')

FirstSortedValue(total <Country,Channel> Name, -Date)

See attached qvw


talk is cheap, supply exceeds demand
2 Replies

Re: Aggr(NODISTINCT) Function Help

You can use these expressions:

date(max(total <Channel,Country> Date),'DD/MM/YYYY')

FirstSortedValue(total <Country,Channel> Name, -Date)

See attached qvw


talk is cheap, supply exceeds demand
riceball
New Contributor

Re: Aggr(NODISTINCT) Function Help

It works! Thank you so much for your help!!!!

Community Browser