To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
My goal is to create a year to date flag in the calendar table so I can use this field as a filter to display sales for five years. My current formula flags everyday in June and I need it to stop at today's date, but couldn't figure out how. Can someone please help untangle this web? I dropped the file in OneDrive folder here. Thanks in advance for your help.
You will specify that flag in your Dates table for each of the past years. For the prior year you can use
are you able to access the file I attached in the link? I need ytd for 5 years, not just last year and this year, so how is your formula going to work?
for the year before the previous you substitute 12 with 24, then for the year before with 36 , and so on. They have to be separate columns unless you have regular calendar years.
the formula I used pulls sales for multiple years but from Jan 1 to end of June, and I just need it to stop at today June 5th for all years. I would like to have 1 filter for year to date, and having diferent formulas doesn't make sense.
In that case modify your column slightly
sorry I don't follow, how does this formula flag the date to mark if it's ytd or not?
The formula eliminates the year from the comparison, and only compares the composite Month-Day key against the target Mont-Day limit. It assumes there is no day lower than Jan 1, which is true for calendar years.
You can use a FORMAT function on the dates instead if you don't like the math.
thank you, is it possible to make this formula works with fiscal calendar?
My original reply was targeted at fiscal calendars, but you said you didn't want multiple columns. You could extend that solution by adding those columns up into a combined column.
User | Count |
---|---|
14 | |
11 | |
6 | |
6 | |
5 |
User | Count |
---|---|
29 | |
17 | |
11 | |
7 | |
5 |