Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
ravindraa
Creator
Creator

Days count for year,month and week

Hi Experts,

  I have struck one place please give me any suggesion to come out from this.

in my application year , Month and week field is there along with sales field , i have to show the year wise sales and month wise sales and week wise also.

while displaying year wise sales i have to substract the sales by days wise , i mean suppose in 2014 have 1000 sales it should divide by 365 days (what are the days is existed in the perticular year), for current year from year starting to till date for this year (ex : 148 days like ),

for month also same, sales should substract by number of days for perticular month, for current month also it should substract by from month start to till date

for week also same, sales should substract by number of days for perticular  week , for current week  also it should substract by week start date to till date.

thanks in advancel

Labels (1)
1 Solution

Accepted Solutions
timanshu
Creator III
Creator III

hi,

in cases of  month and week, days are restricted till data of maximum available date.

View solution in original post

9 Replies
ravindraa
Creator
Creator
Author

Hi experts ,

  Please give me any suggesion on this, i got for year days count, please give me any suggesion on Month and week wise.

Thanks in advance.

sujeetsingh
Master III
Master III

Please come in with more simple words.

ecolomer
Master II
Master II

is that you need?

ravindraa
Creator
Creator
Author


Hi Enrique,

  Thanks for reply but in my chart we have jan,feb,mar...and i have some sales values like 10416(jan sales value),26754(Feb sales value)....

Now i want substract   :::: 10416/numberof days for janmonth 

like this for alll months, and current month from motnh start to till date

like week also.

please give me any suggesion on this.

thanks in advance....

ravindraa
Creator
Creator
Author

Hi Sujeetsingh,

  Thanks for reply but in my chart we have jan,feb,mar...and i have some sales values like 10416(jan sales value),26754(Feb sales value)....

Now i want substract   :::: 10416/numberof days for janmonth 

like this for alll months, and current month from motnh start to till date

like week also.

Now u can understand what i am telling , if you are not understand still ,kindly tell me i will tell more explanation.

please give me any suggesion on this.

thanks in advance....

timanshu
Creator III
Creator III

Hi,

You  have to take Month year, as for month only you cannot decide days.

As an example Feb 2014 and Feb 2015 will have different no of days. Also, only month as dimension will show sales for a month in all years. so no of days will be different taking all years month.


each week will have 7 days. So days are fixed.


PFA application for month and week calculation.

ravindraa
Creator
Creator
Author

Hi timanshu Virmani,

  Thank you very much for replay but for current month we have only 27 days data so it should substract sum(sales)/ numberof days in current month or previous month.

please help me Timashnu Virmani.

thanks in advance.

timanshu
Creator III
Creator III

hi,

in cases of  month and week, days are restricted till data of maximum available date.

ravindraa
Creator
Creator
Author

Hi Timanshu Vimani,

Thank you very much for reply,

it is working fine . i have used like following expression : count (date) for dates and months