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: 
Anonymous
Not applicable

Issue in formatting

Hi All,

  I am having two list boxes called period 1 and Period 2. All I need to show the delta values between them. So when user selects two period I will calculate the delta values as per below expression

num((if(sum({<FLAG1 = {3},[YEAR MONTH]={'$(=GetFieldSelections(Period2))'}>}[GL Gross Value USD])

-

sum({<FLAG1 = {3},[YEAR MONTH]={'$(=GetFieldSelections(Period1))'}>}[GL Gross Value USD])

<0,

'($'&num(sum({<FLAG1 = {3},[YEAR MONTH]={'$(=GetFieldSelections(Period2))'}>}[GL Gross Value USD])

-

sum({<Flag1={3},[YEAR MONTH]={'$(=GetFieldSelections(Period1))'}>}[GL Gross Value USD]))*-1&')',

sum({<FLAG1 = {3},[YEAR MONTH]={'$(=GetFieldSelections(Period2))'}>}[GL Gross Value USD])

-

sum({<FLAG1 = {3},[YEAR MONTH]={'$(=GetFieldSelections(Period1))'}>}[GL Gross Value USD])))/10000000,'###.##')

However it showing "-" values in the expression. Kindly let me know what is the issue in formatting

3 Replies
prma7799
Master III
Master III

I think closing bracket is missing ...

Anonymous
Not applicable
Author

Hi,

  Even I am not sure , Let me know if you able identify.

avinashelite

re-check this

'($'&num(sum({<FLAG1 = {3},[YEAR MONTH]={'$(=GetFieldSelections(Period2))'}>}[GL Gross Value USD])

-

sum({<Flag1={3},[YEAR MONTH]={'$(=GetFieldSelections(Period1))'}>}[GL Gross Value USD]))*-1&')',