Forum Discussion
MBPCCX
4 years agoAdvocate I
Dynamic Current Quarter Filter
Hi all, I have a scenario where I want to apply a dynamic page filter to include only sales data in the current quarter. For example, today being 14 October 2021, I only want to see sales in this...
- 4 years ago
My apologies, I needed to shift the moths a bit. Give this a try:
Current Qtr = VAR _StartOfQtr = DATE ( YEAR ( TODAY() ), FLOOR ( MONTH ( TODAY() ) -1 , 3 ) + 1 , 1 ) VAR _EndOfQtr = EOMONTH ( _StartOfQtr, 2 ) RETURN [Date] >= _StartOfQtr && [Date] <= _EndOfQtr
CNENFRNL
4 years agoCommunity Champion
Simple enough, add a column of Year+Qtr in the date table this way,
YrQtr = Year( DATES[Date] ) * 10 + Quarter( Dates[Date] )