Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calculated Dimension

I want to create last three month data based on selected month

28 Replies
amit_saini
Master III
Master III

Hi,

Try something like below:

<Month = {"$(=max({$} Month)-2)"}>

<Month = {"$(=max(Month)-2)"}> , {$} = current selection, it is the default

Thanks,
AS

amit_saini
Master III
Master III

Not applicable
Author

hope attached file helps you

avinashelite

Hi

Find the solution below:

use like this : =if(SHIP_MONTH<=APPAC_SelectedMonth and SHIP_MONTH>=APPAC_SelectedMonth-3,SHIP_MONTH) in dimension

Not applicable
Author

Hi Bhawna Gupta

i am not expecting this based on selected current month i should display selected month-1 and -2 in

Calculated Dimension 

in expression i have another values

Not applicable
Author

so in dimension itself you use this like

if(Month<=Max(Month) and Month>Max(Month)-3,Month)

avinashelite

Hi siva,

Did you check my attachment and calculated dimension which i have given in the previous post.

Not applicable
Author

in calculated dimension use following expression

=if(match(Month,'$(=Max(Month))','$(=Max(Month)-1)','$(=max(Month)-2)'),Month)

and click ok and after that check suppress null value option in the same tab

hope above option will work for you

Not applicable
Author

no need of max month dear

understand my problem on based on current selection of month in input box i need to change in chat i want to get -3 values

if i select 12 month i want to get nov oct sep data

i have two expression