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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
ERing
Post Partisan
Post Partisan

How to show the Average in the Total Line of a Table when using a Measure?

Using the sample data below, I have a requirement to show the Average Close Rate in the Total Line of a table visual rather than the current result which is the % Closed of Opportunities. In this example, the end users would want to see 57.2% in the Total line of the Close Rate because (58.5+50.3+48.5,+72.3+77.1+36.9+71.0+43.4 = 458)/(8) = 57.25%

 

StateOpportunitiesClosedClose Rate
OH1,16368058.5%
OK1,02151450.3%
OR1,47471548.5%
PA1,00172472.3%
RI1,09684577.1%
SC1,43152836.9%
SD1,03073171.0%
TN1,23653643.4%
Total9,4525,27355.8%
4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

Try this measure

Measure = averagex(values(Data[State]),[close Rate])

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
audreygerred
Super User
Super User

Hello! I used the below and got 57.25%

Closed_Rt_Avg = AVERAGEX(Table,Table[Closed_Rate])
audreygerred_0-1698720094769.png

 





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

Proud to be a Super User!





I think maybe I wasn't clear in my set up. The sample I posted is actually the table visual in my report. In the table visual I've brought in columns for opportunities, closed, and closed rate.


Opportunities = COUNT(OPPORTUNITY_ID)
CLOSED = CALCULATE ([OPPORTUNITIES],'SALES_TABLE' [SALES_STATUS] = "CLOSED")

CLOSED RATE = DIVIDE(Closed,Opportunities)

It's very possible I'm missing something, but I think the solution you provided only works if I already have a table of summarized data?

AVERAGEX is an iterator function that first sums each row then averages the sums: https://learn.microsoft.com/en-us/dax/averagex-function-dax#example 





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

Proud to be a Super User!





Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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.