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: 
brettlong
Contributor
Contributor

Set Analysis Expression appears to be ignoring dimension in Line graph

Hello all,

I am a fairly new Qlik Sense user.  I have a line chart with the expression below as the height of line measure.  In addition, I have a dimension of Fiscal_Year.  The expression seems to be ignoring the Fiscal_Year when calculating (the numbers are incorrect and appear to be cumulative in nature).  However, when I filter on a given Fiscal_Year it will yield the correct result for that given Fiscal_Year.  Any help wis appreciated - thanks!

Expression:

=-sum({<[rsch_mon.PI_has_Lab]={1}>} rsch_mon.grant_exp_adj) /
sum(aggr({<[rsch_mon.PI_has_Lab]={1}>} sum([rsch_mon.SquareFootage_GrntLevel]/12),[rsch_mon.PI_ID],[rsch_mon.location],[rsch_mon.grant_id]))

Results (incorrect):

brettlong_0-1741724779211.png

 

Results when filtered for 2024 (correct)

brettlong_1-1741724871155.png

 

Labels (3)
1 Solution

Accepted Solutions
brettlong
Contributor
Contributor
Author

I just realized the error in my ways.  I have fixed the formula for the measure and everything is working now.  Sorry 🙂

View solution in original post

1 Reply
brettlong
Contributor
Contributor
Author

I just realized the error in my ways.  I have fixed the formula for the measure and everything is working now.  Sorry 🙂