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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to get no of days in quarter

Hi,

i want to extract no of days in a quarter. how to do that.

Thanks

Piyush

9 Replies
jagannalla
Partner - Specialist III
Partner - Specialist III

Hi,

networkdays (QuarterStart(date), QuarterEnd(date))


if you want to remove holidays list, add holidays list as third parameter


Eg:

networkdays (QuarterStart(date), QuarterEnd(date), {,holiday-list})

Cheers!!

Jagan

Not applicable
Author

Hi,

I have have already created Quarter out of date field. i just want to use no of days in a quarter in expression.i am

using quarter as dimension. so , i just want to show no of days in that particular quarter.

Regards,

Piyush

jagannalla
Partner - Specialist III
Partner - Specialist III

Hi,

Take dimension as Quarter

and Expression as Count (Quarter) or Count (Distinct Date)

Cheers!!

Jagan

Anonymous
Not applicable
Author

Jagan Nalla

I guess you mean

count (distinct Date)

Not applicable
Author

Working Days,Actual days?

Add a 1 AS Count to your master calendar and sum it?

Not applicable
Author

Hello,

Do you need to show numeber of possible days regarding selection or simple number of days in Q?

regards

D

Not applicable
Author

Hi,

I have selection on year. i am using quarter as dimension in my table.in expression i have to divide a value by number of days in particular quarter. how to get total no of days in a quarter.

regards,

piyush

Not applicable
Author

try:

QuarterEnd([YourDateField])-QuarterStart([YourDateField])

regards

Darek

swuehl
MVP
MVP

If you don't have a calendar with all dates in that quarter as indicated above, you'll just need to create a date in that quarter (if you created your Quarter with an underlying date, just use Quarter), for example for today's quarter:

=ceil(QuarterEnd(today())-QuarterStart(today()))