Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I'm creating a Word template for a Qlik Sense app and the variable I pulled into the template is not displaying the value. If I pull the variable into either the header or body all it does is display the formula and not the value when I try to preview.
As indicated in the article under scenario 2, you need to create a second identical variable with a slightly different name.
For example:
Use the second variable for your reporting purposes and do not change the original. After creating the new variable in the Sense app, you will need to reload the metadata for the NP connection to the sense app that the new variable was created. This is necessary step to be able to utilize the new variable in the NP designer/report template.
Check all three scenarios in the link below but I believe scenario two 'might' apply to you.
This is the variable in question:
IF(Max($(vCountryUS))=1,'US',IF(Max($(vCountryCA))=1,'Canada','Mexico'))
Do I need to change it to:
=IF(Max($(vCountryUS))=1,'US',IF(Max($(vCountryCA))=1,'Canada','Mexico'))
If so then it does not work correctly in the app.
As indicated in the article under scenario 2, you need to create a second identical variable with a slightly different name.
For example:
Use the second variable for your reporting purposes and do not change the original. After creating the new variable in the Sense app, you will need to reload the metadata for the NP connection to the sense app that the new variable was created. This is necessary step to be able to utilize the new variable in the NP designer/report template.
Would it work if I did this:
VarApp1 - Sum(Sales)
VarApp1b - =Var1
Having two almost identical variables might increase the potential maintenance if we need to change the expression in the future.
Thanks for your help Frank. I tested it out and I was able to reference the original variable with the new one and it worked!
VarApp1 - Sum(Sales)
VarApp1b - =$(Var1)
Great news @bbergstrom
Thanks for the update!