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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to exclude weekends on queries?


Hi,

May I know how will I excempt weekends for my query below? My condition should only count working days..

if([POSTING DATE]-[Date of Transmittal]<=2,'Within','Over') as PaymentSLA,

Thank you

Labels (1)
4 Replies
preminqlik
Specialist II
Specialist II

try like this

if(networkingdays([POSTING DATE],[Date if Transmittal])<=2,'Within','Over')          as               PaymentSLA

Not applicable
Author

Hi,

It didnt work. It all fell to within SLA. As per checking the raw data, there should be some over SLA.

Thank you

tresB
Champion III
Champion III

The function is NetWorkDays(). With proper use, it should work. If you can't get it worked, try to share your sample app here.

Alejandro_Hernández
Former Employee
Former Employee

try with

if((NetWorkDays([Date of Transmittal],[POSTING DATE])<=2),'Within','Over') as   PaymentSLA