Forum Discussion
Average Dax
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!
Thank you for your comment.
I tried above DAX command, but it doesn't work like below.
- v-aatheeque1 year agoCommunity Support
Hi nanacobsbs,
can you try this :
Average Display =
IF (
ISINSCOPE('Test'[Date]),
CALCULATE(AVERAGE('Test'[Nov])),
CALCULATE(MAXX(VALUES('Test'[Date]), CALCULATE('Test'[Nov])))
)If this post was helpful, please consider marking Accept as solution to assist other members in finding it more easily.
- nanacobsbs1 year agoHelper I
Thank you for your comment.
I tried above DAX command, but it doesn't work like below.
If the total had shown 26.77 it would have been good.