Forum Discussion
Dynamic Filter Based On Selected Date Slicer
learning_dax , Assume you have selected a date
new measure =
var _max1 = if(isfiltered('Date'),MAX( 'Date'[Date]) , today())
var _max = if(month(_max1 ) <9, Date(year(_max1 ),8,31) ,Date(year(_max1 )+1,8,31) )
var _min = eomonth(_max1,0)+1
return
//you can use _min and _max in formula
amitchandak Not sure how I would structure the calculation still. Do I use them as filters? The first part of my calculate function would be to calculate # of phone calls so:
CALCULATE(COUNT(Phone_Call_Date))
My selected value as seen in the picture is Month & Year format: August 2022. Does this change anything of the filter context? I'm still not sure how I would build the calculation based on showing future phone calls based on the selected month/year in the slicer.