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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Chanty4u
MVP
MVP

set with variable

Hi all,

 

i have variable    like below   im using in this in set analysis but its showing error in expression..  

vCurHalf_Year = chr(39)&concat(Half_Year,chr(39)&','&chr(39))& chr(39)

 

textbox expression:    =sum({$<Half_Year={(=$(vCurHalf_Year)},Type={'Forecast_SR','Forecast_SSR'}>}Service_Amount)

what might be the issue?

 

 

Thanks

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar

May be try one of these

=Sum({$<Half_Year = {$(=$(vCurHalf_Year))},Type = {'Forecast_SR', 'Forecast_SSR'}>} Service_Amount)

Or this

=Sum({$<Half_Year = {$(vCurHalf_Year)},Type = {'Forecast_SR', 'Forecast_SSR'}>} Service_Amount)

View solution in original post

2 Replies
sunny_talwar

May be try one of these

=Sum({$<Half_Year = {$(=$(vCurHalf_Year))},Type = {'Forecast_SR', 'Forecast_SSR'}>} Service_Amount)

Or this

=Sum({$<Half_Year = {$(vCurHalf_Year)},Type = {'Forecast_SR', 'Forecast_SSR'}>} Service_Amount)
Chanty4u
MVP
MVP
Author

thanks sunny.. 1st one is working .. 2nd one showing expression error.