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
Anonymous
Not applicable

PreviousQuarter Function Not Working

 1.PNG

 

What this is supposed to be doing is averaging the highlighted values (Quarter 1 values) and taking the average of them. However, 87.10 isn't correct. By hand if I do:

(86.67+87.10+83.87)

_____________________

                 3

 

I should be getting 85.88. Why is not coming out to that??? It just picked February's number and returned it....

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi

Use  Avg = SUMX( VALUES( Table1[EMS AM]), Table1[Retention] ) / 3  // ( Or calculate the count as needed).

 

Hope this helps.

 

Thanks
Raj

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

This could be because of 'Retention' variable. If you have already used some formula to derive 'Retention', try splitting the steps , like find the sum and count in 2 steps and find the avg in 3rd step.

 

Thanks
Raj

Anonymous
Not applicable

Hi

Use  Avg = SUMX( VALUES( Table1[EMS AM]), Table1[Retention] ) / 3  // ( Or calculate the count as needed).

 

Hope this helps.

 

Thanks
Raj

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.

Top Solution Authors
Top Kudoed Authors