Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Vidit
Creator
Creator

set analysis expression help?

Hi,

What should be changed in the following set analysis expression, that the count for previous quarter also changes with select in DIV field?

expression used

sum({$+1<[Prod] = {'D'},PeriodNum={$(=Max(PeriodNum)-1)}>}Count

Please suggest?

3 Replies
Chanty4u
MVP
MVP

try

sum({$+1<[Prod] = {'D'},PeriodNum={"$(=Max(PeriodNum)-1)"}>}Count)

Vidit
Creator
Creator
Author

The expression I have mention is working the issue is for

<[Prod] = {'D'},PeriodNum={$(=Max(PeriodNum)-1)}>}

this part of expression it doesn't work for DiV filter

rubenmarin

Hi Vidit, can you try?:

sum({$+1<[Prod] = {'D'},PeriodNum={$(=Max(PeriodNum)-1)}, DIV=P(DIV)>}Count)