Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Remove the months with no data?

Hey everyone, 

 

I would like to remove the months with no data from this slicer. I have tried many filters (e.g. sessopms >0, not blank, last 30 years) but nothing works: 

The months above are for 2020, however you can choose any year you want for the view.

 

My requirement is to have only past and current months show. I.e. until July at the time of writing this post. Is there any way to do this?  I am using a calendar table which creates dates for the last 4 years until today.

3 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Icon for Community Champion rankCommunity Champion

    Anonymous - Perhaps create a column in your table that is something like IF([Date] <= TODAY && [Date] >= DATE(YEAR(TODAY()),1,1). Then you could just filter on this column.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thanks amitchandak

      the video really helped!