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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Problem with network days

Hello!

I need not consider Saturdays and Sundays in my qv document. I have to calculate the data of yesterday, but when today is Monday i want to calculate data of Friday.

Thank you for your help!!!

14 Replies
Not applicable
Author

Thanks but not work.

Not applicable
Author

More ideas???

simondachstr
Specialist III
Specialist III

FirstWorkDate(today(),2)) will give you your desired date. Now your issue is not getting the right work date, but correctly applying the set analysis expression to your [Day] field.

I've suggested two options based on the information that you have made available, which are working in my local test example, but apparently do not work in your case.

The only way now to help you is if you could upload a sample qvw file of your data.

Not applicable
Author

Sorry, but i can`t. do that

I've did this:

=if(DayW<>'Monday',num(count({$<Day={$(=Max(Day)-1)},[name]={'BOOK'},[id]={1},[ip]={7}>}distinct id_2),'#.##0,00'),num(count({$<Day={$(=Max(Day)-3)},[name]={'BOOK'},[id]={1},[ip]={7}>}distinct id_2),'#.##0,00')

But when is 02/10/2014 or 01/10/2014 the result is -, what is the problem?

Thank you!!!

Not applicable
Author

Any ideas?

Thank you.