Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
How Can I set the expression to my date column, so that it will filter only for the Last 30 days?
We need to put 0 instead -1 (0 for last month, -1 for two months, ...) here and it worked out. thank you Sunny
Sum({<Snapshot_Date = {">=$(=Date(Addmonths(Max({1} Snapshot_Date),0), 'YYYY-MM-DD'))"}>} Go_Live)
You should add a set analysis in your differents expressions in order to filter on the last 30 days.
Hope it helps,
Regard,
Marina
something like below:
sum({<[Year Field]=,[Month Field]=, [Your Date Field]={">=$(=Date(Today()-30))<=$(=Today())"} >} SalesVolume)
I have added this expression but I am unable to get the last 30 days data
Sum({<Snapshot_Date = {">=$(=Addmonths(Max(Snapshot_Date),-1))"}>}Go_Live)
What is the format for Snapshot_Date?
whats the dimensions in your chart?
if it has Snapshot_Date as a dimension the expression will not work
The format for Snapshot_Date is '2018-08-31'
I have Project Number as the Dimension and PAC Delay as Expression. I do not have Date in my Dimension
Try this
Sum({<Snapshot_Date = {">=$(=Date(Addmonths(Max(Snapshot_Date),-1), 'YYYY-MM-DD'))"}>} Go_Live)
What is the output that you are getting