amelia
05-25-2022ETL
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 issue querying the data model - would anyone be able to advise?
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