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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
My_Rebecca
Creator
Creator

Month days calculation

Is there any expression to calculate how many days in one month?

In my previous post, I have following bottle neck to calculate the month days while select different time period for max date minus min date. Look forward to find the answer here.

 

Previous post: Solved: Re: Productivity Calculation - Page 2 - Qlik Community - 2058015

This time the scrip is loaded successfully, but how to use this variable correctly? I write the expression: Count(distinct(GI_Delivery & [GI_Delivery Item]))/(7*8*(NetWorkDays('$(=vProductivity_MinDate)','$(=vProductivity_MaxDate)')

But this expression does not work, the calculation result is incorrect while filtering. What is the reason?

The total productivity (1.6) are divided by FY22 & FY23 (1.1+0.5).  Obviously this is wrong. The correct result should be almost equal to 1.6 no matter which year, quarter, month are filtered.

My_Rebecca_0-1681870081202.png

 

My_Rebecca_1-1681870081125.png

 

My_Rebecca_2-1681870081329.png

 

 

 

Labels (2)
1 Reply
stevedark
Partner Ambassador/MVP
Partner Ambassador/MVP