Hi all, I have a SQL direct query dataset that I would like to filter based on variables returned by a table-valued function.
The table-valued function returns dates based on the current system time. ie the start of the week or a day prior at a specific time.
I have created a measure based on the date eg. Begin = MAX('Dates'[start])
I then attempt to create a measure by filtering the dataset from this date. NewMeasure = CALCULATE(SUM('Test'[Data]),FILTER('Test','Test'[Time] > Begin))
The error that I get: Function 'FILTER' is not supported in this context in DirectQuery mode.
Does anyone have a suggestion to correct this for direct query?
Thank you