Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
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
MVP
MVP

Re: NETWORKDAYS date upside-down

May be simply like this:

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

3 Replies
MVP
MVP

Re: NETWORKDAYS date upside-down

May be simply like this:

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

MVP
MVP

Re: NETWORKDAYS date upside-down

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

Re: NETWORKDAYS date upside-down

HHHHHHHOOOOOOOOO ¡

is very very clear, thank you

it's run  ok

Community Browser