Question
How to display the corresponding date range when a year is specified in a parameter.
How to display the corresponding date range when a year is specified in a parameter.
DATE(DATETRUNC('year',[Order Date]))2. Create a parameter as follows;
DATE(DATETRUNC('year',[Year]))4. Create a calculated field and name it Start Date (weekday).
LEFT(DATENAME('weekday',DATETRUNC('year',[Year])),3)5. Create a calculated field and name it End Date.
DATE(DATEADD('day',-1,DATEADD('year',1,DATETRUNC('year',[Year]))))6. Create a calculated field and name it End Date (weekday).
LEFT(DATENAME('weekday',DATEADD('day',-1,DATEADD('year',1,DATETRUNC('year',[Year])))),3)7. Add Start Date (as Discrete), Start Date (weekday), End Date (as Discrete) and End Date (weekday) to Text on the Marks card.