Quantcast
Channel: SQL Server Analysis Services forum
Viewing all articles
Browse latest Browse all 14337

DAX, filter CALCULATE on date interval.

$
0
0

Hi,

I am trying to filter a measure to only display an average for the last two days but I get a constant average value for all dates in the dates table (see attachment). Obviously I am missing something here but I cant figure out what. Other filters are working fine and all relationships are in place.

Here is my DAX:

=CALCULATE(AVERAGE(Performance[Duration]);DATESBETWEEN('Date'[Date];TODAY()-2;TODAY()))




Viewing all articles
Browse latest Browse all 14337

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>