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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
tmumaw
Specialist II
Specialist II

Before Function

Morning everyone,

Question for you all.  I am using this statement:

Sum({<Wkend = {1}>} Billed) - Before(Sum({<Wkend = {1}>} Billed)) 

What is weird in 2016 I have 433,316 and my before column for 2015 is 918,177......the statement is giving me an answer of (801,327).  Any ideas what I am doing wrong?  I am using it in a pivot table with dimensions of year and week.

Thanks

1 Solution

Accepted Solutions
tmumaw
Specialist II
Specialist II
Author

Okay my mistake forgot the set analysis piece in the before column

View solution in original post

9 Replies
sunny_talwar

Both Year and Week are pivoted? May be you need to add TOTAL

Sum({<Wkend = {1}>} Billed) - Before(TOTAL Sum({<Wkend = {1}>} Billed))

tmumaw
Specialist II
Specialist II
Author

Nope

sunny_talwar

Can you may be post a sample or an image?

tmumaw
Specialist II
Specialist II
Author

sunny_talwar

hmmm, its weird.... What if you add this as your expression? Do you see the value from last year?

Before(Sum({<Wkend = {1}>} Billed))

tmumaw
Specialist II
Specialist II
Author

Really weird.....

sunny_talwar

I have no idea what it might be. Unless you can share a sample, I am out of ideas

tmumaw
Specialist II
Specialist II
Author

Okay my mistake forgot the set analysis piece in the before column

sunny_talwar

So it seems to be working now? Right?