Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi!
I'm trying to create a measure in which I calculate the pipeline value for product A for the current month + 3 following months. I have tried to create the measure with the below formula, but it doesn't work.
sum({$<[Product]={'A'},[Date]={"<=$Date(MonthEnd(AddMonths(Today(),+3)),'DD.MM.YYYY')>=$Date(MonthStart(Today()),'DD.MM.YYYY'))"}>} [Pipeline value])
Can you please assist?
Thank you in advance!
Try like this:
sum({$<[Product]={'A'},[Date]={"<=$(=Date(MonthEnd(AddMonths(Today(),+3)),'DD.MM.YYYY'))>=$(=Date(MonthStart(Today()),'DD.MM.YYYY')))"}>} [Pipeline value])
Try like this:
sum({$<[Product]={'A'},[Date]={"<=$(=Date(MonthEnd(AddMonths(Today(),+3)),'DD.MM.YYYY'))>=$(=Date(MonthStart(Today()),'DD.MM.YYYY')))"}>} [Pipeline value])
Thank you for your comment!
When applying this formula, it works well for the future (next 3months are included only), but not for the historical months. It brings e.g-. previous months numbers also even though I only want to include the current month.
Any idea how to solve this?
Sorry I don't understand, could you give examples? You were saying initially that you want: "the current month + 3 following months".
Yes so I want to include the current month + 3 following months (Oct/2023-Jan/2024 when looking at the data today). But now after using this formula, I also got data for Sep/2023, which shouldn't be the case.
Is there still something wrong with the bolded part of the formula?
sum({$<[Product]={'A'},[Date]={"<=$(=Date(MonthEnd(AddMonths(Today(),+3)),'DD.MM.YYYY'))>=$(=Date(MonthStart(Today()),'DD.MM.YYYY')))"}>} [Pipeline value])
Are you sure that you field [Date] stores the value in the format DD.MM.YYYY?
Else I don't see what is going wrong.
You can also try to enter the $(=...) formulas in a text object to be sure that the result returned is correct, or in a search bar.