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: 
cmc
Contributor II
Contributor II

Line Graph: Accumulating a Fraction Measure

 

I have a line graph with a measure that is a fraction e.g. sum(A) / sum(B).

I would like to accumulate the values of A & B separately. I don't want the total measure values to simply be summed up for each step of the line graph.

Currently, my expression looks like this:

=
RangeSum(Above(
Sum(A)
,0,RowNo()))

/

RangeSum(Above(
Sum(B)
,0,RowNo()))

This works when there is no dimension breakdown in the line graph (e.g. there is only 1 line), but when I add a line dimension, the calculations are incorrect for the accumulated measure.

cmc_0-1699458047864.pngcmc_1-1699458055132.png

 

 

Labels (3)
2 Replies
vincent_ardiet_
Specialist
Specialist

Indeed, this doesn't seem to work as expected whereas in a table or a pivot this is working well...

cmc
Contributor II
Contributor II
Author

Agreed, it is very unfortunate 🙁