Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
racheli_zuker
Contributor
Contributor

Pivot Table claculation

Hello, 
Need your assistance with pivot table in Qlik Sense.
The pivot columns are time dimensions (such as month, year, etc.)
The rows are dimensions such as items, customers, etc. 
We would like to calculate an average sales per working day. 
we are using calendar table with a flag '1' for each working day. 
When we are summarizing the days we are getting results only for the days where the items was sold and not for the entire month. 
for example: march 2019 : 25 working days, items sold :100K$ in only 2 days only. 
we expect that the result will be: 100K/25=4000, but instead we get 100K/2=50K.
**Pivot Table: sum(amount)/sum(working day flag**
Thanks!

Labels (1)
  • Chart

1 Reply
Anil_Babu_Samineni

How about this?

sum(amount)/Count({<Working day flag = {1}>} [working day flag])

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful