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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Sum independent of selection

Hi,

I'm trying to display a gauge that shows Sales up to Target of the current month, regardless of any selection done by the user. I created a nice expression for it, but something must be wrong, since it doesn't seem to work. When I select another month, the gauge changes, which should not be the case.

What I have is a variable that holds the Month and Year, like this:

Let vMonthYear = MonthName(Today());

I have loaded a field called MonthYear that is derived from the sales date. Another field holds the sales amount. I thought the expression for the gauge should be as follows:

Sum({<MonthYear={"$(vMonthYear)"}>} Sales)

Hopefully someone can help out.

Thanks!

1 Solution

Accepted Solutions
Not applicable
Author

Hi

Try this one please

Sum({1<MonthYear={"$(vMonthYear)"}>} Sales)

The 1 means that it does not look to other selections.

View solution in original post

4 Replies
Not applicable
Author

hi,

in your expression qv uses the current selection.

try this one:

Sum({<MonthYear=, MonthYear={"$(vMonthYear)"}>} Sales)

Not applicable
Author

Hi

Try this one please

Sum({1<MonthYear={"$(vMonthYear)"}>} Sales)

The 1 means that it does not look to other selections.

Not applicable
Author

This one works!

Thanks for the extremely quick reply!

Not applicable
Author

Hi Frank,

Thanks for the suggestion. It does not seem to work though 😞