Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Select only week ending dates


Hi,

I have a date dimension from which i want to only select the Friday dates? Can someone give me an expression to do this?

I.e. I have the following:

Date
29/11/2013

06/12/2013

13/12/2013
01/12/2013
02/12/2013
27/11/2013

I need:

expression(date)
29/11/2013
06/12/2013
13/12/2013

thanks

1 Solution

Accepted Solutions
Not applicable
Author

use the Weekday() function.

Fridays:

LOAD Date

FROM

FROM [..\dates.qvd] (qvd)

Where Weekday(Date)=5;

Hope this helps

View solution in original post

3 Replies
Not applicable
Author

use the Weekday() function.

Fridays:

LOAD Date

FROM

FROM [..\dates.qvd] (qvd)

Where Weekday(Date)=5;

Hope this helps

MayilVahanan

Hi

Try like this

Load

If(WeekDay(Date)='Fri', 1, 0) AS Flag,

*

From Tablename;

In Expression, try like this

=Sum({<Flag = {1}>} Sales)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

Hi

PFA hope this will help you