Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

sweetu153
New Contributor III

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
MVP
MVP

Re: Average Monthly sales

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

Re: Average Monthly sales

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

sweetu153
New Contributor III

Re: Average Monthly sales

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

Highlighted
woshua5550
Contributor III

Re: Average Monthly sales

check this

@

sweetu153
New Contributor III

Re: Average Monthly sales

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

Shweta_Pattar
New Contributor

Re: Average Monthly sales

Hi Dave,

 

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