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

Announcements
Defect acknowledgement with Nprinting Engine May 2022 SR2, please READ HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
dana
Creator III
Creator III

Issue with variable Filter

Hi People,

Hi People,

I have a report in a Qlik Sense app, which the following expression:

Sum({<Report_MonthNum = {$1}, Brand_SalesReport = {'$(vSalesReportBrand)'}, Year = {'$(vMaxYear)'}>} Monthly_$(vMeasureType))

vSalesReportBrand – to filter a certain brand with a button

vMeasureType – dynamically changes from Amount (the default) to Quantity

I’m trying to build an HTML report based on the app report.

I defined 2  variables filters :

vSalesReportBrand – works as expected.

vMeasureType -  does not work. All the results are zero.

Here is the filter definition:

dana_0-1754638192707.png

Any idea how to resolve it?

Thanks!

 

Labels (2)
1 Solution

Accepted Solutions
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi @dana 

:how do you change the variable? You say it dynamically changes.... based on what?

vMeasureType – dynamically changes from Amount (the default) to Quantity - on UI what is the trigger to toggle it? or in variable overview in Qlik Sense can you share how this variable is defined?

as a quick test - just expose this variable in your HTML NPrinting template and see if the filter is applied and lets take it from there

 

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.

View solution in original post

2 Replies
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi @dana 

:how do you change the variable? You say it dynamically changes.... based on what?

vMeasureType – dynamically changes from Amount (the default) to Quantity - on UI what is the trigger to toggle it? or in variable overview in Qlik Sense can you share how this variable is defined?

as a quick test - just expose this variable in your HTML NPrinting template and see if the filter is applied and lets take it from there

 

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.
dana
Creator III
Creator III
Author

Dearest @Lech_Miszkiewicz ,

Exposing the variable indeed displayed the issue:
I had to attach to the filter value the currency as well, in order for it to work for Amount.

Thank you very much!