Discussion Board for collaboration related to QlikView App Development.
Can any one please help me on calculation of %change.
In the excel the %change is calculated from Frequency aggregated by month as
Please help me on getting this calculation into Qlik.
you can use either previous / peek functions in the script or the Above function on the chart
in script you sort your data by date then in a successive reload you wirte:
if (rowNO() = 1,null(),100*(Frequency - previous(Frequency)) / previous(Frequency)) as %Change
on the chart you would write: 100 * (Sum(Frequency) - Above(Sum(Frequency))) / above(Sum(Frequency))
or Sum(Frequency) / Above(Sum(Frequency)) - 1
and you set formatting to display as percentage in the NUMBER tab of the chart's properties
View solution in original post
Should be like this
Sum(Frequency)/Above(Sum(Frequency)) - 1