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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Create Dimensions

Hi,

I want to create a dimension for all charts in my QlikSense App, which should include the following:

Year 2016, Year 2017 YTD, each moth of Year 2017.

Is that possible?

Many thanks in advance.

1 Reply
its_anandrjs
Champion III
Champion III

For Year 2016

=sum({<[Year Field] = {$(=max([Year Field])-1) } >} SalesValue)

For Year 2017 YTD

=sum({<[Year Field] = {$(=max([Year Field])), NumMonth={">=$(=Max(NumMonth)) <=$(=Max(NumMonth))"}  }>} SalesValue)