Last active
January 1, 2016 18:19
-
-
Save boristyukin/8183442 to your computer and use it in GitHub Desktop.
Qlikview - dynamic set expression to disregard all calendar (or any other dimension) selections
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Credit to http://community.qlikview.com/blogs/qlikviewdesignblog/2013/11/18/dollar-expansions | |
// define variable which will pull/contatenate all members of dimension to disregard | |
Set vClearCalendar = "='[' & Concat({1<$Table={'Calendar'}>} $Field, ']=,[') & ']=' "; | |
// if you want to exclude some, for example Year: | |
Set vClearCalendar = "='[' & Concat({1<$Table={'Calendar'}, $Field-={'Year'}>} $Field, ']=,[') & ']=' "; | |
//this is how set expression will look like | |
// Sum ({$<$(vClearCalendar)>} Amount) | |
// it will be evaluated to something like this and it will ignore all selections for Calendar dimension: | |
// Sum ({$<[Date]=,[Day]=,[Month]=,[Week]=,[Year]=>} Amount) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment