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: 
Not applicable

After and Below functions

I take in dimension Month and expression

(sum([sales]) - after(sum([sales]))) / after(sum([sales]))

but it's not working like this before is also not working

tell me some solusions

thanks and best regards

5 Replies
Not applicable
Author

HI

Can you share you application ..... and whats the problem please describe ???

Not applicable
Author

I want to compare SALES of present month to previous month (through after function)

Not applicable
Author

After function works like this

for example B : after(A)

Filed A : 1 2 3 4 5 6

Field B: 2 3 4 5 6 _

(sum(a) - sum(b) ) / sum (b)

I hope you want to calculate the same ??? but check before that your after function is working properly and values are coming on to it.

Not applicable
Author

Ya Like this but when i use the after function the value is not coming (null)

thanks and regard

Not applicable
Author

after function works on row wise .....

i think you should use Above() function for the same in your script.

(sum(A) - above(sum(A) ) / above(sum(A))

PLease let me know if it works ..... and if not i suggest u should share you application , i will make it for you 🙂