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

Announcements
Streamlining user types in Qlik Cloud capacity-based subscriptions: Read the Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Ericus
Contributor II
Contributor II

Grouping dates

So I'm very new to Qlik, but I have two sets of dates in my table DateFrom and DateTo how can I filter my table with information that originates only in a certain month?

Ericus_0-1637655015959.png

 

1 Solution

Accepted Solutions
Or
MVP
MVP

If you need both DateTo and DateFrom to be within the same month, you'd want something like:

If(Monthname(DateTo) = MonthName(DateFrom),Monthname(DateTo))

In this scenario selecting a month, e.g. January 2021, will only select lines which both start and end in January.

View solution in original post

3 Replies
Or
MVP
MVP

What do you mean by "Originates only in a certain month"? If you mean anything that started in a certain month, you would typically add a Month field e.g. MonthName(DateFrom) and filter on that.

Ericus
Contributor II
Contributor II
Author

Overall I'd like to view data with DateFrom and DateTo within a certain month, but I'd like to create a filter in my table so that another person could just change the filter and view all the data which have a DateTo and a DateFrom in a certain month.

Or
MVP
MVP

If you need both DateTo and DateFrom to be within the same month, you'd want something like:

If(Monthname(DateTo) = MonthName(DateFrom),Monthname(DateTo))

In this scenario selecting a month, e.g. January 2021, will only select lines which both start and end in January.