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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Vittore8
Creator
Creator

Get Field

Vittore8_0-1588531910555.png

Hi, how can I get this result using set analysis:

<Date={2019}> -- only by year

result:

01.01.2019
01.02.2019

Labels (1)
1 Solution

Accepted Solutions
Vegar
MVP
MVP

Use a set expression like this:

{<[Date] = {">=$(=makedate(2019))<$(=makedate(2020))"}>}

 

IF you want to create a dimension then use it in an expression like this: 

=aggr(only({<[Date] = {">=$(=makedate(2019))<$(=makedate(2020))"}>}[Date]), [Date])

 

IF you want to use it in a measure then use an expression like this:

=sum({<[Date] = {">=$(=makedate(2019))<$(=makedate(2020))"}>}[Amount])

 

 

View solution in original post

1 Reply
Vegar
MVP
MVP

Use a set expression like this:

{<[Date] = {">=$(=makedate(2019))<$(=makedate(2020))"}>}

 

IF you want to create a dimension then use it in an expression like this: 

=aggr(only({<[Date] = {">=$(=makedate(2019))<$(=makedate(2020))"}>}[Date]), [Date])

 

IF you want to use it in a measure then use an expression like this:

=sum({<[Date] = {">=$(=makedate(2019))<$(=makedate(2020))"}>}[Amount])