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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
ClaireBear
Helper I
Helper I

Please Help - Adding the Three Monthly Averages for a Quarter

Hello, 

 

I have created a measure which works out the average value for the month and a measure which works out the average for the quarter.  These are displayed on a card visual. 

I have now been asked to add each month average value within the quarter to get a total. 

 

So, if the average values are, Oct $200, Nov, $400 and December $150, I need the card to read $750 and not average of the three values combined (which it is currently doing)

 

Measures:

Previous Month Basket Value =
CALCULATE([Average Basket Value],DATESMTD(ENDOFMONTH(dateadd('Dimension Time'[Date],-1,MONTH))))

Previous Quarter Basket Value =

CALCULATE([Average Basket Value],DATESQTD(ENDOFQUARTER(dateadd('Dimension Time'[Date],-1,QUARTER))))
 

Is anyone able to help with this weird senario? 

 
1 ACCEPTED SOLUTION

@ClaireBear , My bad, it needs to be sumx, you also need month year as column

 

Previous Quarter Basket Value =
CALCULATE(sumX(values('Dimension Time'[Month Year]),[Average Basket Value]),DATESQTD(ENDOFQUARTER(dateadd('Dimension Time'[Date],-1,QUARTER))))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
ClaireBear
Helper I
Helper I

Thank you so much @amitchandak , this works perfectly!

amitchandak
Super User
Super User

@ClaireBear , Try like

Previous Quarter Basket Value =
CALCULATE(sum(values('Dimension Time'[Month Year]),[Average Basket Value]),DATESQTD(ENDOFQUARTER(dateadd('Dimension Time'[Date],-1,QUARTER))))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak , Thank you for your response. The measure is showing an error from the (values('Dimension Time'[Month Year]), part of the calculation. 

@ClaireBear , My bad, it needs to be sumx, you also need month year as column

 

Previous Quarter Basket Value =
CALCULATE(sumX(values('Dimension Time'[Month Year]),[Average Basket Value]),DATESQTD(ENDOFQUARTER(dateadd('Dimension Time'[Date],-1,QUARTER))))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.