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

NETWORKDAYS date upside-down

Hello everybody..........

I have a table with dates ,  in same case the date upside-down, The second date is minor that the first one

12-07-2013  30-06-2013

the "networkday" function itt gives me mistake    -1

tobe -10

  not -1


Which is the solution?


thak you

1 Solution

Accepted Solutions
tresesco
MVP
MVP

May be simply like this:

If( StartDatefield>EndDateField, NetworkDays(EndDateField,StartDatefield) , NetworkDays(StartDatefield,EndDateField) )  as NetWorkingDays

View solution in original post

3 Replies
tresesco
MVP
MVP

May be simply like this:

If( StartDatefield>EndDateField, NetworkDays(EndDateField,StartDatefield) , NetworkDays(StartDatefield,EndDateField) )  as NetWorkingDays

jonathandienst
Partner - Champion III
Partner - Champion III

Or

NetWorkDays(RangeMin(StartDatefield, EndDateField), RangeMax(StartDatefield, EndDateField))

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

HHHHHHHOOOOOOOOO ¡

is very very clear, thank you

it's run  ok