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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Supress Weekend Names

I have a straight table withg data showing working dates only.

I would like to add a field showing the weekday name. I used the below function.

=weekday(DATE)

Problem is, now my straight table shows the weekends as well and I cannot find a way to suppress them.

Any ideas?

Capture.JPG

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Actually since we are checking for nots, I think it should be 'and' and not 'or'

Try this instead:

If(Weekday(DATE) <> 'Sat' and Weekday(DATE) <> 'Sun', WeekDay(DATE))


If that doesn't work, then this should def. wor:


If(Match(WeekDay(DATE), 'Mon', 'Tue', 'Wed', Thu', 'Fri'), WeekDay(DATE))

Best,

Sunny

View solution in original post

3 Replies
sunny_talwar
MVP
MVP

You are back my friend .

Try this:

If(Weekday(DATE) <> 'Sat' or Weekday(DATE) <> 'Sun', WeekDay(DATE))

Best,

Sunny

sunny_talwar
MVP
MVP

Actually since we are checking for nots, I think it should be 'and' and not 'or'

Try this instead:

If(Weekday(DATE) <> 'Sat' and Weekday(DATE) <> 'Sun', WeekDay(DATE))


If that doesn't work, then this should def. wor:


If(Match(WeekDay(DATE), 'Mon', 'Tue', 'Wed', Thu', 'Fri'), WeekDay(DATE))

Best,

Sunny

swuehl
Champion III
Champion III

You can also try using

=weekday(DATE)

as calculated dimension, not as expression.