Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
deepika_gohil
Contributor
Contributor

in Qliksense chart independant from filter

I am using qliksense.

I have 1 filter called financial year (2016-17,2017-18,2018-19).

I want a bar chart which has dimension as financial year and measure will give sum of the sales for max month of the respective financial year i.e(Mar-17,Mar-18,May18)

I put expression as =sum({<MonthYear={'$(vMax_monthyear)'}>}Sales)

where vMax_monthyear=aggr(max(MonthYear),FinancialYear)

In this case I am getting value for measure only when I am selecting financial year from measure.If I am not selecting any financial year then chart is not showing any measure.I want to display the value for all the years without selecting financial year from filter.

I have negate the financial year like below also.but not working .

=sum({<MonthYear={'$(vMax_monthyear)'},Financialyear=>}Sales)

please assist.

11 Replies
agigliotti
Partner - Champion
Partner - Champion

let's try using the below expression instead:

sum( if( MonthYear = $(vMax_monthyear), Sales, 0) )


where

vMax_monthyear = Max(MonthYear);


I thought MonthYear field is numeric.

aunahsan
Partner - Contributor III
Partner - Contributor III

I would suggest you see what your variable is returning and see if it is the same format as MonthYear.

is there any reason for aggr in your variable?

deepika_gohil
Contributor
Contributor
Author

Hi Aun,

Thanks for your reply..

Variable is returning correct value but only when I am selecting any values in filter of financial year.

deepika_gohil
Contributor
Contributor
Author

Hi Andrea,

Thanks for your reply.

Not working..

Monthyear is in mmmyy format.

deepika_gohil
Contributor
Contributor
Author

Aggr is applied in variable because For each year Max monthyear is different.

agigliotti
Partner - Champion
Partner - Champion

try to add a new measure with Max(Monthyear) and see what you get.

arulsettu
Master III
Master III

Try Maxstring(Monthyear)

deepika_gohil
Contributor
Contributor
Author

Its not working..

arulsettu
Master III
Master III

can you share some sample and expected output