Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
gal_polak
Creator
Creator

Count dates in each Week Day

Hi all, 

 

I have list of items(challengs) that have start and end date, 

what i would like to do, 

is count how many challenges have start date in each week day , and how many have end date in each week day

so for example: i have challenge.enddate of 1/13/2019 which is Sunday,

and i want it to be counted only in sunday as 1 

is it possible?

2019-02-21_15-12-51.png

Labels (2)
1 Solution

Accepted Solutions
sunny_talwar

May be like this

If(WeekDay([Challenges.EndDate]) = [Week Day],
Count(WeekDay([Challenges.EndDate]))
)

View solution in original post

3 Replies
Anil_Babu_Samineni

May be this?

Create field, If WeekDay field not available in the model like WeekDay(DateField) as WeekDay

Then, Expression as follows

Count({<WeekDay = {'Sun'}>} WeekDay)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
sunny_talwar

May be like this

If(WeekDay([Challenges.EndDate]) = [Week Day],
Count(WeekDay([Challenges.EndDate]))
)
gal_polak
Creator
Creator
Author

seems to work! thx!