Forum Discussion
Calculate time difference based on report filter
- Anonymous8 years ago
HI rnoyce,
>>But I don't know how to get MIN(WindowDate)? It should come from the report filter that uses relative date filtering on DepartureDateTime
Based on your requirement, you want to get the min range from filter, right?
If this is a case, you can try to use minx/maxx and allselected function to get the specific date range.min_Date = MINX ( ALLSELECTED ( Table ), [DepartureDateTime] ) max_Date = MAXX ( ALLSELECTED ( Table ), [DepartureDateTime] )
Regards,
XIaoxin Sheng
HI rnoyce,
>>But I don't know how to get MIN(WindowDate)? It should come from the report filter that uses relative date filtering on DepartureDateTime
Based on your requirement, you want to get the min range from filter, right?
If this is a case, you can try to use minx/maxx and allselected function to get the specific date range.
min_Date = MINX ( ALLSELECTED ( Table ), [DepartureDateTime] ) max_Date = MAXX ( ALLSELECTED ( Table ), [DepartureDateTime] )
Regards,
XIaoxin Sheng
- rnoyce8 years agoFrequent Visitor
Hi Anonymous
That works perfectly - thanks for your help