Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
so im trying to do a stock control sheet and to get that i want a bar chart with today stock and -30 days stock
bu everytime i try to get the -30 days stock i keeps giving me the whole stock i have
my set analysis for this is :
Sum({<Date = {"<$(=Date(Today() - 30))"}>} Stock * WAC)
also i tried to do it in the data load as
IF(Date = Date(Today() - 30), 1, 0) AS Is30DaysAgo,
im i doing smothing wrong cuz i tried like everything i only get 0 or the all stock, i just want to get the stock before 30 days for any of the dates i have when the user pick on it will go to that date
I found the cause!!!
Since you using Date as a dimension, it doesn't come out in the same row.
Create a field called Date2 that is the same as Date but only has a different name
(It will be not used on the select Or visualization)
and put it in the set analysis.
And add Date= in set analysis.
reply! thanks!
How about creating a new column from a script?
If the [Date] column is a date type, make the value before the last 30 days, as in the script below.
e.g.)