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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
surajdhall
Contributor III
Contributor III

aggr(if() expression not working

Hi All,

I have an aggr expression in pivot table(in dimension) to calculate trend for all the months in. My expression works to show bad trend, but not in other as per the conditions below.

The below expression is test column in table, it gives value 1 for down trend and 0 for up and horizontal trend, so the test is successful, but my main expression is not working.


if(not IsNull(Trim(After(sum(Budget)/sum(Sales)))),

If(round(Alt(After(Sum(Budget)/Sum(Sales)), 0),0.0001) <

  (Round(Alt(Sum(Budget)/Sum(Sales), 0),0.0001) - (Round(Alt(Sum(Budget)/Sum(Sales), 0),0.0001)*0.005)),1,0),0)

Please help!

0 Replies