Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
MEDHA07
Contributor III
Contributor III

how to calculate average per day/month

Hi All,

I need to calculate the 3 measures .

first measure perday total records count

Second measure Average per day

Third measure Total average on month

below is my data set:

how to show each date today records+previoustotalrecordscount?

how to calculate dynamically subtracting each day’s results from the previous day’s results by category.today records minus previous daytotalrecords.

adding each day’s “Per Day” count to the previous results and dividing by the number of days in the month 

11/30/20203493912 Avg/day/Month
12/1/20213495298  
Per Day1,3861,386 
Avg/Day/Mo1,386 1386/1
12/2/20213,503,457  
Per Day8,15981591386+8159/2
Avg/Day/Mo4,773  
12/3/20213,509,552  
Per Day6,09560951386+8159+6095/3
Avg/Day/Mo5,213  
12/4/20213,509,552  
Per Day001386+8159+6095/4
Avg/Day/Mo3,910  
12/5/20213,509,552  
Per Day001386+8159+6095/5
Avg/Day/Mo3,128  
12/6/20213,521,631  
Per Day12,079127091386+8159+6095/6
Avg/Day/Mo4,620  
12/7/20213,524,26428,349total/30 days
  Total average per day 
1 Reply
abhijitnalekar
Specialist II
Specialist II

Hi @MEDHA07 ,

Please use  this formula.

rangesum(above(
num(Sum({$ <InvoiceDate={"$(='>=' & Date(MonthStart(Max(InvoiceDate)), 'MM/DD/YYYY') & '<=' & Date(MonthEnd(Max(InvoiceDate)), 'MM/DD/YYYY'))"}>}
sale),vCurr),0,RowNo()
))/max(day(InvoiceDate))

Regards,
Abhijit
keep Qliking...
Help users find answers! Don't forget to mark a solution that worked for you!