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

trying to average a measure

Hello Power BI DAX superstars,
 
I am stuck on DAX. Any guidance is greatly appreciated.
 
What am I trying to do?
Create a measure that averages an existing measure.
 
Current Measures:
 
Total DF = CALCULATE( [Total Responses], CROSSFILTER( DF_Dim[Response ID], 'Survey Fact'[Response ID], Both     ) )
 
Percent = DIVIDE( [Total Responses], CALCULATE( [Total DF], ALL('Survey Fact')     ) )
 
New Measure:
 
ave % = AVERAGEX('Survey Fact', [Total Responses])
 
I envision creating a measure that will average the percent measure in the matrix.
 
The ave% measure does not give the envisioned output.
Here is a link to the PBIX and data source.
 
3 REPLIES 3
sjoerdvn
Super User
Super User

sjoerdvn_0-1706261791268.png

 

Anonymous
Not applicable

Hi @Anonymous ,

 

Thank you for your reply. 

 

I did not pose my question, correctly.

 

Here is my matrix. 

 

Screenshot 2024-01-25 141344.jpg

 

My goal: create a measure that gives me an average percent.

 

For example, in Excel, I can perform the following.

 

Transform DataPercent
Join datasets91.67%
Map fields between tables70.83%
Transform from wide to long66.67%
Union datasets66.67%
Average Percent73.96%

 

I can calculate the average percent with the following excel formula, =Subtotal(1, B2:B5).

 

What would the equivalent be in DAX?

 

Any nudge is greatly appreciated.

 

Luis Pablo Martinez

Anonymous
Not applicable

Hi @Anonymous ,
Based on the pbix file you provided, I tried to create a new meaure based on the meaure you created for the purpose you want to calculate the average ratio.
Create a measure:

Average Percent = 
AVERAGEX(
    VALUES('Survey Fact'[Response ID]), 
    [Percent]
)

Fianl output

vheqmsft_0-1706149481915.png

Best regards

Albert He

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.