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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
BI_Dev
Creator II
Creator II

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 (1)
1 Solution

Accepted Solutions
tresesco
MVP
MVP

Try like:

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

View solution in original post

3 Replies
mdmukramali
Specialist III
Specialist III

Hi,

Can you try something like this

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

Or

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

 

tresesco
MVP
MVP

Try like:

sum(Total{<[ID]={"=Len(ID)>0"}>} [Annual Expense ])
BI_Dev
Creator II
Creator II
Author

Awesome.Thanks much.