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

How to keep expression as constant?

Hi,

Question on data handling in a scattered plot

Selections: Year (2011,2012)

Dimension: Year, Area

Expressions:

(1) Sum(Profit)     - x-axis

(2) Volume%        - y axis

In the scattered plot setup, how do i formulate my expression to force expression (1) to use 2011(min Year) profit for BOTH years? The idea is to show where the volume(%) went from 2011-2012 having kept profit in 2011 as a constant.

I've tried using Sum(Total) but it didn't take care of the Area

      Sum(Total{<Year= {$(= min(Year))}>} [Profit])

Thanks!

CONG

2 Replies
er_mohit
Master II
Master II

have you tried Sum(Total{<Year=, >} [Profit])

updated by me

Sum(TOTAL{$<Area=,Year={"(=min(Year))"}>} [Profit])


Not applicable
Author

That would have taken in all the data from 2011 to 2012... What i did using below already properly separate the data in the first dimension (Year) but does not generate the correct data for the 2nd dimension (Area). Now all my Area returns the same profit (2011 total)