Forum Discussion
zazaalaza
2 years agoFrequent Visitor
DAX too Slow with Filtering
Hi, I have the following measure: Measure =
CALCULATE (
COUNT ( 'Table'[Value] ),
FILTER (
ALL ( 'Table' ),
'Table'[ValidFromDate] < MAX ( 'Date'[D...
AlexisOlson
Super User
2 years agoIt might help to make the max date a variable.
Measure =
VAR _MaxDate = MAX ( 'Date'[Date] )
RETURN
CALCULATE (
COUNT ( 'Table'[Value] ),
ALL ( 'Table' ),
'Table'[ValidFromDate] < _MaxDate,
'Table'[ValidToDate] > _MaxDate
)
zazaalaza
2 years agoFrequent Visitor
Thanks but that doesn't help.