Thank you’ I followed the article and the problem is not solved.
If I change the date in the model, it affects the start date for ‘Spend of the last 30 days’ field:
ifelse(dateDiff(date},now()) <=30, {spend},0)
Example:
Current date is 11/14/2023.
In my date filter I chose the last 7 days.
The value for the field ‘Spend of the last 30 days’ is starting at 11/07/2023 as in the date filter even though it is a calculated field.
I would expect that ‘Spend of the last 30 days’ won’t be affect by the dates I pick in the model.
The calculated field ‘Spend of the last 30 days’ is made by this formula:
ifelse(dateDiff(date},now()) <=30, {spend},0)
I tried using a different formula but encountered the same problem:
ifelse(
truncDate(‘DD’, {window_time_frame[query]}) >=addDateTime(-30, ‘DD’, now()),
{spend_breakdown},
null
)
Hi @shay,
Since we haven’t heard back, I’ll go ahead and close out this topic. However, if you have any additional questions, feel free to create a new post in the community and link this discussion for relevant information if needed.