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

Number of days in a month

Hello,

I am trying to calculate the no of days in a particular month, and in my case it is not the normal calendar month rather a Fiscal month.

Details are attached here.

   

Fisc PeriodSales end of Fisc periodNo of Fiscal days
2016058909.1928
2016064938.335
2016071099928
201608548728
2016091187835
20161054898

in the above table, the last column is based on the Fisc_day_of_month column in the Calendar sheet.

Please let  me know if more information is needed.

11 Replies
Not applicable
Author

I was looking for this solution, thanks Sunny. But what is happening if i bring in another dimension say, Country to the block. It changes back to the wrong values.

sunny_talwar

You just need to provide all the details and we should be able to provide you the exact expression you need.

Try this:

=Max(TOTAL <Fisc_Period>{1<Date = {"$(='<' & Date(Today()))"}>}Fisc_day_of_month)


Capture.PNG