Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
GaneshLakshman
Contributor III
Contributor III

Previous year Data analysis

Hi,

I'm developing an Qlik Sense app in which I have to show the previous years data based on the date range selected.

I'm ignoring some dimensions like this: sum({<SY=, [SY.WkNoYear] = , Date = , DateFriendly = ,........})

But the problem I'm facing is that the calendar table has many other dimensions like month, weekNo, Day, DayName, Monthnumber etc and if the user selects any of these dimensions from the "Selections" my expression would break.

Is there a simple way to include all the fields to ignore without making the expression too long so that user has the flexibility to select any dimension?

Thanks

1 Solution

Accepted Solutions
Vegar
MVP
MVP

You can list all calendar field values in a variable and use the variable in your set modifier.

Set vClearCalendar = month, weekNo, Day, DayName, Monthnumber;

Example use:

Sum({<$(vClearCalendar), month={'Feb'}>} Amount)

View solution in original post

2 Replies
Vegar
MVP
MVP

You can list all calendar field values in a variable and use the variable in your set modifier.

Set vClearCalendar = month, weekNo, Day, DayName, Monthnumber;

Example use:

Sum({<$(vClearCalendar), month={'Feb'}>} Amount)

GaneshLakshman
Contributor III
Contributor III
Author

Thank you very much, it worked