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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
AH
Creator III
Creator III

Calculation of sum of values Picking up String

I have a table with a field of InvoiceID, value begins with CR and DB and i have to sum the LineAmount picking only the value start with CR.

How do i do that? Is there any clue about that?

Please suggest.

Thanks,
Shan

1 Solution

Accepted Solutions
its_anandrjs
Champion III
Champion III

Hi,

Try expression

=Sum( if( Left(InvoiceID,2) = 'CR' , LineAmount))

Regards

Anand

View solution in original post

3 Replies
its_anandrjs
Champion III
Champion III

Hi,

Try expression

=Sum( if( Left(InvoiceID,2) = 'CR' , LineAmount))

Regards

Anand

AH
Creator III
Creator III
Author

Hi Anand,

Thanks for the quick response. I got the exact answer.

I really appreciate it!

Thanks,

Shan

its_anandrjs
Champion III
Champion III

Hi,

Thanks, Close the thread by selection appropriate answer Correct or helpful.

Regards

Aannd