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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set Analysis By pass

Hi All,

I have written a set analysis code to get the current month, current year gross amount. The answer is correct, however when I select the filter Dim1 the value changes. Is there a way to keep the value constant even when I click on the Dim1 filter.

Attached the qvw file.

Thanks in Advance.

1 Solution

Accepted Solutions
jagan
Partner - Champion III
Partner - Champion III

Hi,

Just add Dim1= in set Analysis it excludes the selection of this field in set analysis,

=sum({<Dim1 =,  Year={$(vCurrentYear)},Month={$(vCurrentMonth)}>}[Gross Amount])


Hope this helps you.


Regards,

jagan.

View solution in original post

3 Replies
MK_QSL
MVP
MVP

=sum({<Dim1 =,  Year={$(vCurrentYear)},Month={$(vCurrentMonth)}>}[Gross Amount])

Simply in Set Analysis, whatever you want to bypass...use

Field1 = , Field2 = , etc

jagan
Partner - Champion III
Partner - Champion III

Hi,

Just add Dim1= in set Analysis it excludes the selection of this field in set analysis,

=sum({<Dim1 =,  Year={$(vCurrentYear)},Month={$(vCurrentMonth)}>}[Gross Amount])


Hope this helps you.


Regards,

jagan.

ashfaq_haseeb
Champion III
Champion III

Hi,

Use below

=sum({<Year={$(vCurrentYear)},Month={$(vCurrentMonth)},Dim1=>}[Gross Amount])

=sum({<Dim1=>}[Gross Amount])

Have a look at attached application too.

Regards

ASHFAQ