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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
curiousfellow
Specialist
Specialist

Limit shown dimension values

I have a listbox in which I select a period.

In a pivot table all periods less than or equal than the selected period are presented as a dimension.

When I use the next formula as a calculated dimension I don't get what i want :

if(period < $(chosen_period),period)

Is it possible to limit the dimensions with a formula ?

5 Replies
marcus_sommer

This approach is possible - I think in your case is either the field or the variable or both not numeric and then an operator like <>= will fail.

- Marcus

curiousfellow
Specialist
Specialist
Author

Both are numeric, so i suppose that can not be the reason

tresB
Champion III
Champion III

If you could share your sample qvw, all this guessed suggetions could be avoided and could be hit the target directly.

curiousfellow
Specialist
Specialist
Author

Trseco is right of course. So I herewith enclose an example

tresB
Champion III
Champion III

Rather use set analysis in the expression to limit the values in dimension. Let the second dimension be: periode and try expression:

=sum({<periodkeuze=,periode={'<$(gekozen_periode)'}>}value)

PFA