In the period over-period computation, I was able to achieve the aggregated value for the present week, the previous week, and its difference, however, I would also like to display the aggregated values across category values for the present, and previous week and its difference.
I could keep a categorical field in the category field well but was unable to see or utilize that particular field in the period-over-period computation. Is there any way I can achieve the same using calculated fields or adding one more computation on the same insight? Appreciate your help.
Hi Lalprasanth,
do you want to add a part in the calculation, that filters your period-over-period computation to one selected category?
If yes: you can create a parameter and filter in your calculation to the selected value.
As an alternative: you can add a filter to the visual.
@lalprasanth
you can only receive the values for categorys that are under the top mover. I guess you want to visualise all categorys from that dimenions.
I suggest to use a table and the following calculations:
periodOverPeriodDifference
periodOverPeriodPercentDifference
periodOverPeriodLastValue
Example: periodOverPeriodDifference(count(ifelse(dateDiff([YOUR NEWEST DATE], [YOUR DATEFIELD], “WK”) < 2, [YOUR MEASURE] , NULL)),[YOUR DATEFIELD],WEEK, -1)
Group by: Category and Date (Weeks)
Value: Your Calculations
Filter: Excluding null values for your calculation and filter for the latest two weeks.