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: 
qlikview979
Specialist
Specialist

Saturday & Sunday

Hi Experts,

I have data like this

   

IDCustomernameDateSales
1A01-01-2016100
4D04-01-2016400
5E05-01-2016500
6F06-01-2016600
7G07-01-2016700
8H08-01-2016800
11k11-01-20161100
12l12-01-2016

1200

in source i have excluded Saturday & Sunday dates, but i am getting Saturday & Sunday dates in variable 

i don't want Saturday & Sunday

Please check here 09-01-2016,10-01-2016 not in source ,but showing in variables

Untitled.png

Labels (1)
22 Replies
Not applicable

use variables defination like mentioned below,

vMax:      =date(Max(Date))

vMax1:    =date(Max(Date,2))

vMax2:    =date(Max(Date,3))

vMax3:    =date(Max(Date,4))


thanks,

Abdul

beck_bakytbek
Master
Master

Hi Manesh,

try this:

let vStartDay = date('01/01/2010');
let vEndDate = date('31/12/2016');



for x = vStartDay to vEndDate

tempCalendar:
load $(x) as Date AutoGenerate(1);

next x

NoConcatenate

Working_Calendar:
Load Date, weekday(Date) as WeekDay, week(Date) as Week, Month(Date) as Month, Year(Date) as Year, floor(month(Date)/3)+1 as Qtr

resident tempCalendar

where WeekDay(Date) <> 'Sat' and WeekDay(Date) <> 'Sun';

drop table tempCalendar;

i hope that helps

beck

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Try using below max function.

For Max use =Max(DATE,1)

For Prev use = =Max(DATE,2)

For Prev 2 Days use = =Max(DATE,3)

like others...

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
qlikview979
Specialist
Specialist
Author

Hi Experts,

I am not getting please find the attached files.

Regards

Not applicable

Hi Mahesh,

May be you can use NetworkDays function and you can search in our community, will get lot about this

qlikview979
Specialist
Specialist
Author

Hi Harish,

I Want  in Excel  ,please check i have attached my files.

Regards

qlikview979
Specialist
Specialist
Author

Hi,

I have marked dates, that are not my source,but i am getting

I don't want Saturday & Sunday Dates

Untitled.png

qlikview979
Specialist
Specialist
Author

Hi Kishore,

I tried  ,not get if u get please share the link

Regards

qlikview979
Specialist
Specialist
Author

Hi Bro,

I tried not get,

Please check with my files,

i have attached my files

Regards

Not applicable