Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
Raymzzz
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

@Raymzzz  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

@Raymzzz  try below expression

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

Raymzzz
Contributor III
Contributor III
Author

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