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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Expression help please

I have below expression in staright table and Total count and expression total are giving different counts.Can anyone help me make it right ?

IF(SUM([Expense Amount (USD)]) > '75000',

IF([Year of Expense] =YEAR(TODAY()),COUNT(%LeaseKey)))

5 Replies
sunny_talwar

Yes they will give different results based on the option you choose. Which one do you want to use?

Simon_J
Partner - Contributor III
Partner - Contributor III

Hi Pavana

Is this due to the dimension you have in the table. Are there any null rows suppressed in the table?

Thanks

Simon

Not applicable
Author

I need both the filters in the expression.Basically I have to show the Count of LeaseKey's where  current year sum(Expense)  greater than 75k.

Anonymous
Not applicable
Author

Hi

try this  as an  expression in a PIVOT TABLE ?

COUNT(      {  <[ Year of Expense] =  {"$(=Year(Today()))"},  [Expense Amount (USD)]={">=75000"}  >  } %LeaseKey)

or

COUNT( Distinct    {  <[ Year of Expense] =  {"$(=Year(Today()))"},  [Expense Amount (USD)]={">=75000"}  >  } %LeaseKey)

Not applicable
Author

I need the sum of Expense amount...will this work as each lease has multiple rows of expense ? Thank you.