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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
upaliwije
Creator II
Creator II

Date in set Expression

Hi Friends

sum( {$<[R_YEAR] = {'$(=max([R_YEAR]))'},[R_MONTH]-={'$(=max([To_MONTH]))'},POL_TYPE={'F'}>} [PREMIUM] )

I have written the above expression in the attached file and it is working, But I want to modify it to show foolowing

When the use select R_Year as 2013 and R_Month as Jan

I want to show only  records where To_Month<> R_Month (when R_Month=Jan then To_month= any month other than Jan)

In other words 1st 11 records shown in my my pivot table(attached) should be excluded and all other records must remain as it is

Please help me to rewrite the  expression

Thanks

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

This should do it: sum( {$<[To_MONTH]-={'$(=only([R_MONTH]))'},POL_TYPE={'F'}>} [PREMIUM] )


talk is cheap, supply exceeds demand

View solution in original post

3 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

This should do it: sum( {$<[To_MONTH]-={'$(=only([R_MONTH]))'},POL_TYPE={'F'}>} [PREMIUM] )


talk is cheap, supply exceeds demand
israrkhan
Specialist II
Specialist II

Hi Gysbert,

can you please comment on this post.

Pivot Table Rows.

would be much appreciated...

Thanks...

upaliwije
Creator II
Creator II
Author

Thanks a lot