Forum Discussion
Show values for items NOT in current month
- 9 years ago
You can either use "advanced filtering" instead of relative dates (maybe obvious) but then you would have to select the specifc date you want for the cut-off rather than a relative date.
The other option is to introduce a slicer on dates into your view.
You can either use "advanced filtering" instead of relative dates (maybe obvious) but then you would have to select the specifc date you want for the cut-off rather than a relative date.
The other option is to introduce a slicer on dates into your view.
Thanks for the reply Erik. I ended up going with your second option and added a custom column for 'IsCurrentMonth'. I completely forgot about that option this morning and needed something that would roll over month to month. For those interested:
IsCurrentMonth = IF(MONTH('Table Name'[Date])=Month(NOW()), "Current Month", "Other")
Sliced it using the 'Other' option and was good to go.
Cheers!
- erik_tarnvik9 years agoSolution Specialist
That works! Pretty good for a Monday...
- coathangers4 years agoFrequent Visitor
For data that spans multiple years this would be more robust:
IsCurrentMonth = IF(AND(MONTH('Table Name'[Date])=Month(NOW()),YEAR('Table Name'[Date])=YEAR(NOW())),1,0)
Using 1 and 0 will work better in report service than text or boolean based filtering I find.