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

YTD in custom calendar

Hi everyone, I have a custom calendar beggining from May-01, ending Apr-30, and I'd to show some measures based on YTD.

For instance, if I am in Aug-15 I'd like to show a bar chart with Sales from May-01 to Aug-15 of all years.

All my curent attenpts leads to complex set analisys formulas.

Has anyone a suggestion?

thanks in advance, guys.

Rodolfo

1 Solution

Accepted Solutions
Anil_Babu_Samineni

Is that May-01 and Apr-30 are MonthYear format or Date Format?? If it is MonthYear then try like below

LET vMin = Min(DateField);

Sum({<MonthYear = {">=$(vMin) <=$(=Max(MonthYear))"}>} Sales)

OR

Sum({<MonthYear = {">=$(vMin) <=$(=MonthName(Today()))"}>} 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

View solution in original post

1 Reply
Anil_Babu_Samineni

Is that May-01 and Apr-30 are MonthYear format or Date Format?? If it is MonthYear then try like below

LET vMin = Min(DateField);

Sum({<MonthYear = {">=$(vMin) <=$(=Max(MonthYear))"}>} Sales)

OR

Sum({<MonthYear = {">=$(vMin) <=$(=MonthName(Today()))"}>} 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