Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
je48746stijn
Contributor III
Contributor III

Show only records in pivot with data of previous year but not of current year

Dear all,

I have a pivot with the sum of salesfee(=sum(SalesFee) per EmployerName and Year.

I would like to show only the records for each EmployerName that have data of previous year but not the current year.

Could anyone help me with this one?

Thanks in advance.

Stijn

1 Solution

Accepted Solutions
Kushal_Chawda

@je48746stijn  try below expression

=sum({<EmployerName={"=sum({<Year ={'$(=max(Year))'}>}SalesFee)=0 and sum({<Year ={'$(=max(Year)-1)'}>}SalesFee)>0"}>}SalesFee)

View solution in original post

2 Replies
Kushal_Chawda

@je48746stijn  try below expression

=sum({<EmployerName={"=sum({<Year ={'$(=max(Year))'}>}SalesFee)=0 and sum({<Year ={'$(=max(Year)-1)'}>}SalesFee)>0"}>}SalesFee)

je48746stijn
Contributor III
Contributor III
Author

Hi, thanks.  This is what I wanted.  Thanks a lot !