Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Average Monthly sales

Hi All, I have working days table for two years defined with number of working days for each month. In facts table each day sales amount is available. How to get average monthly sales?  i.e total sales of a month divide with number of working days.

PFA. Thanks to advice.

Regards,

Krishna

6 Replies
tresesco
MVP
MVP

Create a Month field in the script, like:

Month(Date) as Month

and then use this Month field as dimension in the chart and use expression like:

= Sum(Sales)/[Number of working days]

woshua5550
Creator III
Creator III

what does your source data looks like ?  can you provide some sample data?

Anonymous
Not applicable
Author

Hi Dev,

i have working days table as attached.

in Qlikview i want respective working days as below.

Month 2016WDays 2017Wdays

Jan       nofodays      nofodays

Feb       nofodays     nofodays

Mar       nofodays      nofodays

woshua5550
Creator III
Creator III

check this

@

Anonymous
Not applicable
Author

Thank You Dave. It helped me and completed the task.

Shweta_Pattar
Contributor
Contributor

Hi Dave,

 

I am not able open the .qvw files. Could you please paste the formula here. I need this calculation. Please assist.