hi,
i’m trying to create table with single row and in it i want to have date 7 days ago and measures just for that single day (for example [attemtps #]). I have created an object =RelativeDate(CurrentDate();-7). But when I added [attempts #] object i get wrong result. It contained sum of attempts for all dates together and i want to have it only for day 7 days ago.
any ideas guys?
Thx for reply guys.
David I’ve tried your method before but it shows empty cell and don’t why. So in this case Jansi I think your suggestion will give same result. I tried different way to get what I want but still no success. Anybody had same problem?
Look up context for reporting. You need to specify the level of aggrgation on the report. SUM([# Attempts];[Date]-7);[Date] type of thing. (That is not the exact syntax but understanding report level contexts will help you get your result)
I recommend you to create a new dimension like [Is 7 Days ago] defined as if [date]=relativedate([date];-7) then “T” else “F”
and then use [7 days ago Attempts #] = [Attempts #] where( [Is 7 Days ago] = “T”)
In order to test it, use [Date] and [Is 7 Days ago] together in a simple report to check the formula for [Is 7 Days ago] is working…
If it’s working you can use the new measure [7 days ago Attempts #].