Announcements
The Google Cloud Community will be in read-only from July 16 - July 22 as we migrate to a new platform; refer to this community post for more details.

Slice based on date range

Hello all!
I have a table with a Date/Time collumn [Date] and I'm trying to create a slice to show only the rows from the previous month. For example, when viewing the app in April (from April 1 to April 30) the slice will show only the rows with[Date] values between March 1 and March 31 of the current year.

Could anyone point me in the righr direction to create this slice, please?

Solved Solved
0 7 500
1 ACCEPTED SOLUTION

IF(

MONTH(TODAY())=1,

AND(12=(MONTH([Date])),Year(TODAY())-1=YEAR([Date])),

AND((MONTH(TODAY()))-1=(MONTH([Date])),Year(TODAY())=YEAR([Date]))

)

 

View solution in original post

7 REPLIES 7
Top Labels in this Space