Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

supritha_collie
New Contributor III

Set Analysis

I want o get the total Expense only if the length of ID is >0 and I ma using the below expression and it is not working.

 

Any help is appreciated. Thank you.

sum(Total(({<[ID]=>} [Annual Expense ])))

Labels (4)
1 Solution

Accepted Solutions
MVP
MVP

Re: Set Analysis

Try like:

sum(Total{<[ID]={"=Len(ID)>0"}>} [Annual Expense ])
3 Replies
mdmukramali
Valued Contributor III

Re: Set Analysis

Hi,

Can you try something like this

=Sum({<[ID]={'*'}>}Total [Annual Expense ])

Or

=Sum({<[ID]= {"=len(trim([ID])) >=1"}>} Total [Annual Expense ])

 

MVP
MVP

Re: Set Analysis

Try like:

sum(Total{<[ID]={"=Len(ID)>0"}>} [Annual Expense ])
supritha_collie
New Contributor III

Re: Set Analysis

Awesome.Thanks much.