Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
samvile18
Creator III
Creator III

Syntax issue

Hi all,

I have the following set analysis which works really well, the problem I'm having though is the data in the graph still changes if someone selects a month from my list box.

I want this table to always show YTD 2012 data no matter what selection is made by the user.

=Sum({$<ExtractDate={">=$(vStartDate)<=$(vEndDate)"},Measure={'APE AP'}>} Value)/1000

vStartDate = 01/01/2012

vEndDate = 31/12/2012

Am I missing something simple?

1 Solution

Accepted Solutions
jagan
Luminary Alumni
Luminary Alumni

Hi,

Exclude your date filters selection like Year, Month, Quarter, Week.

=Sum({$<Year=, Month=, Quarter=, Week=, ExtractDate={">=$(vStartDate)<=$(vEndDate)"},Measure={'APE AP'}>} Value)/1000

This way you can ignore the selections using Set analysis.

Regards,

Jagan.

View solution in original post

3 Replies
jagan
Luminary Alumni
Luminary Alumni

Hi,

Exclude your date filters selection like Year, Month, Quarter, Week.

=Sum({$<Year=, Month=, Quarter=, Week=, ExtractDate={">=$(vStartDate)<=$(vEndDate)"},Measure={'APE AP'}>} Value)/1000

This way you can ignore the selections using Set analysis.

Regards,

Jagan.

forte
Partner - Creator
Partner - Creator

Hi Sam ,

If you want to avoid selections on some fields just change your Set analisys as follows :

=Sum({$<ExtractDate={">=$(vStartDate)<=$(vEndDate)"},Measure={'APE AP'} , Month = >} Value)/1000

I have supposed that fiel's name is Month. You can do these with every field you want to avoid Qlik standar functionality,

Hope it helps

Regards

samvile18
Creator III
Creator III
Author

Brilliant, thanks for your help.