Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
RichardLinderman
Contributor II
Contributor II

Select Excluded in Set Analysis

I've currently got the following function:

Sum({< ProductPage = {"Air"}, Datefield = {$(=Max(Datefield))}>}[Fare Amount])

I want to add an area to the function based on a field named "Account Code" so that, if I selected a particular "Account Code" value, it would display the results excluding the value I selected. I know this can kinda be done out of edit mode, but I need it in the function itself.

Labels (2)
1 Solution

Accepted Solutions
marksouzacosta
Partner - Specialist
Partner - Specialist

You can also try using E():

Sum({<

ProductPage = {"Air"},

Datefield = {$(=Max(Datefield))},

[Account Code] = E([Account Code])

>} [Fare Amount])

More about E Set Function in the link below:
Set modifiers using set functions | Qlik Sense on Windows Help

Read more at Data Voyagers - datavoyagers.net

View solution in original post

2 Replies
Antoine04
Partner - Creator III
Partner - Creator III

Hello,

What about something like :

Sum({<

ProductPage = {"Air"},

Datefield = {$(=Max(Datefield))},

[Account Code]-={'$(=Concat(Distinct [Account Code],','))'}

>}[Fare Amount])

 

Regards,

Antoine

marksouzacosta
Partner - Specialist
Partner - Specialist

You can also try using E():

Sum({<

ProductPage = {"Air"},

Datefield = {$(=Max(Datefield))},

[Account Code] = E([Account Code])

>} [Fare Amount])

More about E Set Function in the link below:
Set modifiers using set functions | Qlik Sense on Windows Help

Read more at Data Voyagers - datavoyagers.net