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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
raadwiptec
Creator II
Creator II

sum

iam trying to get the total for this expression.. but getting 0 values

Sum({<$(='[Invoice_T]')={'SPO'}>}$(='[Expense Amount'&[Invoice Type]&' | '&[Rates]&']'))

i tried below but get 0 values

Sum({TOTAL<$(='[Invoice_T]')={'SPO'}>}$(='[Expense Amount'&[Invoice Type]&' | '&[Rates]&']'))

Labels (1)
7 Replies
sunny_talwar
MVP
MVP

Would you be able to share a sample?

raadwiptec
Creator II
Creator II
Author

i do not have sample.. it s a very big file..

Sum({<$(='[Invoice_T]')={'SPO'}>}$(='[Expense Amount'&[Invoice Type]&' | '&[Rates]&']')) -this part works and iam using it sometimes..


now i need total

Anonymous
Not applicable

Are these fields are in different tables  Expense Amount , Invoice Type ,  Rates ?

try this

Sum({<$([Invoice_T])={'SPO'}>} $(='[Expense Amount'&[Invoice Type]&' | '&[Rates]&']'))



raadwiptec
Creator II
Creator II
Author

hi allu wer is total here

Anonymous
Not applicable

so you want sum of Expense Amount , Invoice Type ,  Rates fields when    Invoice_T = SPO ?


raadwiptec
Creator II
Creator II
Author

i already have the sum but i need the full total now

Anonymous
Not applicable

I am not sure about this ,

Remove  $


Sum({<([Invoice_T])={'SPO'}>} $(='[Expense Amount'&[Invoice Type]&' | '&[Rates]&']'))


or


Sum( Total {<([Invoice_T])={'SPO'}>} $(='[Expense Amount'&[Invoice Type]&' | '&[Rates]&']'))




I think you better work with aggr() functions for this