Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calendar Days count between two date fields

Dear Experties ,

I have a one query regarding Calendar days & working days  count between Two dates. As i count clendar days & working Days between ENDate - STARTDATE then i will get days , but if the  start date and end date would same date it will gives us 0   instead of 0 i want to show as  1 day so how would  do i  acheive it  . Please see the screen shot below as i expecting days are highlithed in red.

It would be helpful  if anyone can provide the logic.



Sample.png

1 Solution

Accepted Solutions
PrashantSangle

Hi,

write if condition like

if(startdate=enddate,1,yourexpression)

Regards,

Prashant

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

View solution in original post

1 Reply
PrashantSangle

Hi,

write if condition like

if(startdate=enddate,1,yourexpression)

Regards,

Prashant

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂