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

Straight table expression not working?


HI,

I have to write a expression based on below condition

IF Status='Open' then NUM(DataColumn1-DataColumn2)

I am trying to use if(Status=Open', NUM(DataColumn1-DataColumn2)). But straight table column is showing blank. table is not loading any data. Is there any error in expression? please can anyone suggest me

Thanks.

1 Solution

Accepted Solutions
sunny_talwar

Try this may be:

Dimension:

1) Week(EnterDate)

2) CustomerID

Expressions:

Data1: Num(Only({<Status = {'Open'}>}DataColumn1)-Only({<Status = {'Open'}>}DataColumn2))

Data2: Num(Only({<Status = {'Closed'}>}DataColumn1)-Only({<Status = {'Closed'}>}DataColumn2))

Data3: Num(Only({<Status = {'Required'}>}DataColumn1)-Only({<Status = {'Required'}>}DataColumn2))

View solution in original post

24 Replies
sunny_talwar

May be try this:

=Only({<Status = {'Open'}>} DataColumn1 - DataColumn2)

Not applicable
Author

Hi,

Try the below one and see also the attached app,Hope it helps!!

=if(Status='Open',num(DataColumn1)-num(DataColumn2))

Not applicable
Author

Thanks. Tried this. still showing blanks

Not applicable
Author

Thanks. Tried this. still showing blanks

Not applicable
Author

Give this a try

=if(Match(Status,'Open'), Num(DataColumn1) - Num(DataColumn2))

Not applicable
Author

Could you post your sample app?

Anonymous
Not applicable
Author

which is your dimension?, each category in your dimension can only have one status?

MarcoWedel

‌missing single quote.

regards

Marco

Not applicable
Author

dimension is only below one

Week(EnterDate)