Forum Discussion

amelia's avatar
05-25-2022
Solved

PREV query getting error

Hi Sisense community,  My goal here is to calculate the total number of subscriptions churned between the current week and the last 4 weeks. However, I am getting an error that says there is an iss...
  • harikm007's avatar
    05-26-2022

    Hi amelia ,

    Please try advanced filter as below:

    -Hari

     

  • harikm007's avatar
    harikm007
    05-26-2022

    Hi amelia ,

    Not sure why RANGE function is not working. Please try below formula instead (sum up values of 4 weeks).

    ([Total Subscription churned], PREV([Weeks in Date of Joining], 0)) + 
    ([Total Subscription churned], PREV([Weeks in Date of Joining], 1)) + 
    ([Total Subscription churned], PREV([Weeks in Date of Joining], 2)) + 
    ([Total Subscription churned], PREV([Weeks in Date of Joining], 3))

    -Hari