Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how can we write expression for current year sales(chart should change dynmicaaly for next year?

Hi

how can we write expression for current year sales(chart should change dynamically for next year?

1 Solution

Accepted Solutions
sunny_talwar

May be this

Sum({<Year = {"$(=Year(Today()))"}>} Sales)

View solution in original post

4 Replies
Anil_Babu_Samineni

Dynamically for next year means

Sum({<Year = {'$(=Max(Year))'}>}Sales) // It will give 2017 data sales if you have till 2017 data. In future, If you are adding or updating for next year it will return 2018 data point of sales

Sum({<Year = {'$(=AddYears(Max(Year),1))'}>}Sales)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
sunny_talwar

May be this

Sum({<Year = {"$(=Year(Today()))"}>} Sales)

Not applicable
Author

Sum({<Year = {'$(=Max(Year))'}>}Sales)   ////  it shows the 2018 year.I didn't get 2017

if i write this expression sum({$<Year={$(=max(Year)-1)}>}Sales) //// i get 2017 year,what is the reason. plz tell me

Gopichand

Anil_Babu_Samineni

May be you have forecast data for 2018 too.

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful