Forum Discussion
Average Dax
Thank you, but it does't work.
I would like to get the following calculation results.
Is it possible?
nanacobsbs Try this one
RunningAverage =
IF(
HASONEVALUE('Test'[DATE]),
CALCULATE(
AVERAGEX(
FILTER(
ALL('Test'[DATE]),
'Test'[DATE] <= MAX('Test'[DATE])
),
'Test'[Nov]
)
),
CALCULATE(
AVERAGEX(
ALL('Test'[DATE]),
'Test'[Nov]
)
)
)
- nanacobsbs1 year ago
Helper I
It doesn't work.
Dax command has some error, so I put "SUM" infromt of 'Test'[Nov]
- v-aatheeque1 year ago
Community Support
Hi nanacobsbs ,
can you try the below Dax query :RunningAverage = IF( HASONEVALUE('Test'[DATE]), AVERAGEX( FILTER( ALL('Test'[DATE]), 'Test'[DATE] <= MAX('Test'[DATE]) ), 'Test'[Nov] ), AVERAGEX( ALL('Test'[DATE]), 'Test'[Nov] ) )
If the issue persists share the sample date for better understanding.If this post was helpful, please consider marking Accept as solution to assist other members in finding it more easily.
If you continue to face issues, feel free to reach out to us for further assistance!
- v-aatheeque1 year ago
Community Support
Hi nanacobsbs ,
We haven’t heard back from you regarding our previous response and wanted to check if your issue has been resolved.
If it has, please consider clicking “Accept Answer” and “Yes” if you found the response helpful.
If you still have any questions or need further assistance, feel free to let us know — we're happy to help!Thank you!