Václav Slováček
02/14/2024, 8:42 AMFOR PREVIOUSPERIOD
? Are there any caveats? Trying to use it like this:
SELECT {metric/my_metric} FOR PREVIOUSPERIOD({label/Start_Time.day})
The issue is that it does not show the correct number in the reports. However when I use Compare the period with Previous Period feature in Analyze date filters on my_metric
I get the correct number. Using the same date dimension, using multiple different time periods.Michal Hauzírek
02/14/2024, 9:38 AMVáclav Slováček
02/14/2024, 11:30 AMFOR PREVIOUSPERIOD
with the default 1 shows different number. So it seems that it works differently. However I want this metric to work because I want to use it in a subsequent calculation.
Average Score = SELECT AVG({fact/Review.Score}) WHERE <condition>
Average Score Prev = SELECT Average Score FOR PREVIOUSPERIOD({label/Start_Time.day})
Václav Slováček
02/14/2024, 11:31 AMAverage Score Prev
shows different (wrong) value from what insight editor shows whey you apply the comparison in date filterVáclav Slováček
02/14/2024, 2:10 PMMichal Hauzírek
02/15/2024, 4:42 PMVáclav Slováček
02/16/2024, 7:17 AM