Forum Discussion
DAX formula
- 2 years ago
Hi,
You could try a calculated column with something like this:
7 Day Average = CALCULATE( AVERAGE([Hours]), FILTER( ALL('YourTable'), 'YourTable'[Date] >= EARLIER('YourTable'[Date]) - 6 && 'YourTable'[Date] <= EARLIER('YourTable'[Date]) ) )
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
Hi,
You could try a calculated column with something like this:
7 Day Average = CALCULATE( AVERAGE([Hours]), FILTER( ALL('YourTable'), 'YourTable'[Date] >= EARLIER('YourTable'[Date]) - 6 && 'YourTable'[Date] <= EARLIER('YourTable'[Date]) ) )
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
Hi
For me this below error is coming
A circular dependency was detected: Export Worksheet[7 Day Average].
Could anyone please help