Forum Discussion
joshua1990
Post Prodigy
6 years agoFilter just for completed months
Hello everybody! I need to add a column to my calendar to filter in my views just for completed months. The calendar I am using is a fiscal calendar like Date - Fiscal Month Does someone know ...
- Anonymous6 years ago
// Let's say that FiscalMonthID is // a unique identifier of a fiscal // month in Calendar. [Full Fiscal Month] = // calculated column var __today = TODAY() var __currentFiscalMonth = Calendar[FiscalMonthID] var __allFiscalMonthDatesAreOK = ISEMPTY( FILTER( 'Calendar', Calendar[FiscalMonthID] = __currentFiscalMonth && Calendar[Date] > __today ) ) RETURN __allFiscalMonthDatesAreOKBest
D
mahoneypat
Microsoft Employee
6 years agoThis should get your desired result in a calculated column (this example is on the Date table).
Month Complete = IF(EOMONTH('Date'[Date],0)<=TODAY(), "Yes", "No")
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
JezzatheGee
Advocate II
2 years agoPerfect - very simple but does the job!!