Forum Discussion
Contiguous date problem with Country filter
Anonymous Ah, well if you are using a financial year then I would definitely avoid TI functions as they are designed specifically to work with a standard Gregorian calendar, which essentially makes them next to useless. So, the answer to your question lies in how good of a financial calendar you have. Can you provide a sample of your financial calendar? Do you have a column in your financial calendar that is the day of the year for the financial calendar? For example, 1/4/2020 would have a value of 1, 1/5/2020 would be 2 and so on. If you have that then the answer is essentially a LOOKUPVALUE or MAXX(FILTER()) situation such as:
MAXX(FILTER('Dates',[Year] = [Financial Year] - 1 && [Day of Year] = 1),[Date])Dear Greg_Deckler ,
Basically i am calulating percentage diffrence with respect to last year.
for that i have created this measure :
- Greg_Deckler4 years agoCommunity Champion
Anonymous Can you change the relationship cross-filter direction to Single from Both? Also, I would add this column to your financial calendar:
FiscalDayOfYear = VAR __Date = [Date] VAR __FinancialYear = [Financial Year] RETURN COUNTROWS(FILTER('Dates',[Financial Year]=__FinancialYear && [Date]<=__Date))- Anonymous4 years agoNot applicable
both have single connection
my main country table :
I have added a new column to my date table
- Anonymous4 years agoNot applicable
Greg_Deckler could you please guide me ?