Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Current Year month as default selction, also keep

Hello All,

 

I have a "year month" Slicer. Every month my data gets updated and  I want slicer to be auto-selected for all current year and month, but also have previous year month unselected.

 

I have created a calculated column as 

Column = IF(MONTH(Table1[Date])=MONTH(NOW()) && YEAR(Table1[Date])=YEAR(NOW()),"current month",MONTH(Table1[Date]))

 

and kept in under visual filter, it shows only current year and month, the previous year month doesn't appear at all.

I want current year month autoselected and previous unselected

 

Thanks,

Aditya

 

4 Replies