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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
bskemp01
Contributor III
Contributor III

Selecting Date Range on Line Chart

I have a line chart that looks like this:

bskemp01_0-1708978113845.png

 

as you can see on Feb-6th the REV YTD has a value of $37,240,518.54. When i select a date range that includes this, see what happens below:

bskemp01_1-1708978230736.png


as you can see the value for Feb-6th is now $18,368,908.11. I need a way to select date ranges like this where my accumulation stays constant and shows the first value. is this possible in qlik?

here is my expression for REV YTD:

{$<
  Year={'$(=max([Year]))'},
  [DateType]={'Invoiced'}
>}

RangeSum(
  Above(
    Sum([Company 1 Sales])
    +
    Sum((1/[Rate])*[Company 2 Sales CAD])
    +
    Sum([Company 3 Sales])
    +
    Sum((1/[Rate])*[Company 4 Sales CAD])
    ,0,RowNo(total)
  )
)
1 Solution

Accepted Solutions
Digvijay_Singh

Probably you need to implement as of table instead of above function, check if that link helps - 

https://community.qlik.com/t5/Design/The-As-Of-Table/ba-p/1466130

View solution in original post

1 Reply
Digvijay_Singh

Probably you need to implement as of table instead of above function, check if that link helps - 

https://community.qlik.com/t5/Design/The-As-Of-Table/ba-p/1466130