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: 
mahnoor1279
Contributor III
Contributor III

How to get average on specific values in a table

Hey everyone I have data of transactions in which i want to get the average  only if the transaction_type =DEBIT_CARD 

Labels (3)
3 Replies
lironbaram
Partner - Master III
Partner - Master III

Hi 
Something like this 

 

Avg(if(transaction_type='DEBIT_CARD',transaction_value))

 

mahnoor1279
Contributor III
Contributor III
Author

can we apply the same technique for avg per day ?

stevejoyce
Specialist II
Specialist II

aggr(avg({<transaction_type = {'DEBIT_CARD'}>} transaction_value), day_field)