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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

dynamically should be changed max year with quarter

Hi All,

In My Bar chart

My Dimension is

=Pick(Measure ,if(YEAR='$(=max({<NAME={A,B,C,D},QUARTER={'Q4'}>}YEAR))',

YEAR&'-'&QUARTER,

if(YEAR and QUARTER='$(=maxstring({<YEAR={$(=max(YEAR))}>}QUARTER))',YEAR))

,if(YEAR= '$(=max({<NAME={A,B,C,D}>}YEAR))'

and QUARTER='$(=maxstring({<YEAR={$(=max(YEAR))}>}QUARTER))', YEAR

))

Expressions are

=(Avg({<NAME={A},QUARTER={'Q4'}>}VALUE))

=(Avg({<NAME={B},QUARTER={'Q4'}>}VALUE))

=(Avg({<NAME={C},QUARTER={'Q4'}>}VALUE))

=(Avg({<NAME={D},QUARTER={'Q4'}>}VALUE))

Presently we are showing for the max year with quarter in the chart as dimension and we are restricting with quarter-Q4. But we have data for the latest year 2015 Q1,Q2 and we required to show fo only latest year as 2015 Q2 in the chart and previous years should be calculated only Q4 and shoudl be shown as 2012,2013,2014,2015-Q2.

The above process should be done dynamically.

Please help me on this jaganMRKachhiaIMP

Labels (1)
11 Replies
Not applicable
Author

this requirement we have only this chart so i dont want to change anything in the datamodel level.

No it should show like this Only 2015-Q2,2014,2013,2012,2011,2010 in dimension

and from 2014 to 2010 for these years show be calaculate only Q4 quarter data

please suggest me

koushik_btech20
Creator
Creator

Hi Avinash,

Not mentioning quarters for rest of the other years is ok. You can do these thing inside the script.

Thanks,

Koushik