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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Summing the prior month

The syntax here for summing the records for the previous month is not working.

Any suggestions on the correct syntax

=Sum ({$<[Period (FDPERD)]={"=(only([Period (FDPERD)]))-1"}>}[TR Outstanding (TROUTV)])

Thank you



Labels (1)
1 Solution

Accepted Solutions
Not applicable
Author

You could try:

sum( {$<Period= {"$(=Num(Period-1))"}>} [TR Outstanding (TROUTV)])

View solution in original post

2 Replies
Not applicable
Author

You could try:

sum( {$<Period= {"$(=Num(Period-1))"}>} [TR Outstanding (TROUTV)])

Not applicable
Author

I have 2 suggestions for you:

sum( {$<[Period (FDPERD)] = {$(=Only([Period (FDPERD)])-1)}>} [TR Outstanding (TROUTV)])


or

sum( {$<[Period (FDPERD)] = {$(#=Only([Period (FDPERD)])-1)}>} [TR Outstanding (TROUTV)])


Hope these work!

Best,

Maya