Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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)