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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
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!

Labels (1)
0 Replies