Forum Discussion
Create second Calendar table from an original Calendar table
Hi Greg - The new calendar didn't seem to work, as it seemd to ignore the filter, and shows the entire range of the original calendar.
Would you have any suggestions?
The sample code was adjusted as shown below ...
NEW_CALENDAR =
VAR __table = ADDCOLUMNS(ALL('CALENDAR'[Date]),"__Measure",'CALENDAR'[Is In Date Range])
RETURN
FILTER('CALENDAR','CALENDAR'[Is In Date Range] = "Y")A picture of the original calendar and new calander is below. I am wanting the New Calendar to show only 5/12/2018 to 5/20/2018
Anonymous, not sure, I created it in my test environment and it seems to work. See attached Page 10. Calendar, New Calendar and Measure 4.
- Anonymous7 years agoNot applicable
Hi Greg - I didn't see any attachments (Go Bucks! ... I see you are from Columbus.)
- Greg_Deckler7 years ago
Community Champion
OK, let me try that again.
- Anonymous7 years agoNot applicable
Got it. Thanks. And yes your example works.
In my example, the indicator (Measure4) in Calendar is dynamic based on a slicer value so the dates with "Y" (Measure4) changes from slicer to value to value. And for whatever the reason, Measure4 in New Calendar won't change and mirror what is in Calendar.
Thanks for your help.