Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Cyriackpazhe
Helper II
Helper II

DAX

Screenshot (43).pngScreenshot (44).png

In the first measure, I'm trying to compute the average quarterly sales and next measure the average montly sales in each year. In the first mesure, i should be getting the year level value in the quarter level as well since there is an ALL function around the quarter column, but why am i getting this result. Same issue with the second measure. Any reason why this is happening

3 REPLIES 3
some_bih
Super User
Super User

Hi @Cyriackpazhe try this version for your measure

Quarterly Average Test =
AVERAGEX(
VALUES('Calendar'[Date]),
CALCULATE([Total], ALL('Calendar'[Date]))
)





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






But what was the error with what i wrote??

It was supposed to give the result as expected right

Hi @Cyriackpazhe 

measure might aggregate values across all quarters rather than respecting the context of year and quarter





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Helpful resources

Announcements