Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Set Analysis

What could be wrong with the following expression:

=Num((Sum({< [Date Dispensed] = {'>=$(=Date('2013-09-01'))<=$(=Date('2014-08-31'))', [New Product Indicator]={'YES'} >} [MedAid Amount] + [Shortfall])), '$##,##0.00') 

Regards

1 Solution

Accepted Solutions
swuehl
MVP
MVP

You are missing a curly bracket } and probably the sequence of single quotes will not be parsed correctly by QV.

Use a combination of double and single quotes instead.

=Num((Sum({< [Date Dispensed] = {">=$(=Date('2013-09-01'))<=$(=Date('2014-08-31'))"}, [New Product Indicator]={'YES'} >} [MedAid Amount] + [Shortfall])), '$##,##0.00')


Then take care that the default date format matches the format of [Date Dispensed] and that your default number separators are matching your num() format code. If in doubt, specify the Date() format code and the num() separators explicitely.

View solution in original post

4 Replies
swuehl
MVP
MVP

You are missing a curly bracket } and probably the sequence of single quotes will not be parsed correctly by QV.

Use a combination of double and single quotes instead.

=Num((Sum({< [Date Dispensed] = {">=$(=Date('2013-09-01'))<=$(=Date('2014-08-31'))"}, [New Product Indicator]={'YES'} >} [MedAid Amount] + [Shortfall])), '$##,##0.00')


Then take care that the default date format matches the format of [Date Dispensed] and that your default number separators are matching your num() format code. If in doubt, specify the Date() format code and the num() separators explicitely.

maxgro
MVP
MVP

=Num(

(Sum({<[Date Dispensed]={">=$(=Date('2013-09-01'))<=$(=Date('2014-08-31'))"}, [New Product Indicator]={YES}>}

[MedAid Amount] + [Shortfall])), '$##,##0.00')

Anonymous
Not applicable
Author

Thank you will check

Anonymous
Not applicable
Author

Thank you will advise accordingly