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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
afaherty
Helper V
Helper V

New to DAX, super easy AVERAGE question!

Hi All!

I am brand new to DAX, and am struggling majorly.  I feel like this question will be a peice of cake for most of you.  I have attached the testing data set I'm using to work on learning DAX.

 

Background:  It's dummy survey data.  There's 4 survey questions, scored on a Likert scale.  I have already recoded the Likert scale answers into codes (a scale of 1 to 4).  I have already unpivoted the data.  What I am trying to do is simply average the numerical responses for each survey question.  I came close, though I have since deleted the DAX out of rage (haha), so I can't recall how I did this but the numbers are correct...the decimals are just 2 decimal places off:

 

afaherty_1-1626712375747.png

 

Below is the exact dummy data I am practicing with.  Can someone please help me figure this out?  Thank you so much!

 

IDQuestionResponse
6Understand the Diverse Needs of Students_Code4
6Plan for the Diverse Needs of Students_Code3
6Know the Required Content_Code4
6Effectively Teach Required Content_Code3
9Understand the Diverse Needs of Students_Code4
9Plan for the Diverse Needs of Students_Code4
9Know the Required Content_Code4
9Effectively Teach Required Content_Code4
23Understand the Diverse Needs of Students_Code4
23Plan for the Diverse Needs of Students_Code4
23Know the Required Content_Code4
23Effectively Teach Required Content_Code4
25Understand the Diverse Needs of Students_Code4
25Plan for the Diverse Needs of Students_Code2
25Know the Required Content_Code4
25Effectively Teach Required Content_Code4
11Understand the Diverse Needs of Students_Code4
11Plan for the Diverse Needs of Students_Code4
11Know the Required Content_Code4
11Effectively Teach Required Content_Code4
28Understand the Diverse Needs of Students_Code4
28Plan for the Diverse Needs of Students_Code4
28Know the Required Content_Code4
28Effectively Teach Required Content_Code4
30Understand the Diverse Needs of Students_Code3
30Plan for the Diverse Needs of Students_Code3
30Know the Required Content_Code4
30Effectively Teach Required Content_Code4
12Understand the Diverse Needs of Students_Code4
12Plan for the Diverse Needs of Students_Code4
12Know the Required Content_Code2
12Effectively Teach Required Content_Code4
31Understand the Diverse Needs of Students_Code4
31Plan for the Diverse Needs of Students_Code4
31Know the Required Content_Code4
31Effectively Teach Required Content_Code2
10Understand the Diverse Needs of Students_Code4
10Plan for the Diverse Needs of Students_Code4
10Know the Required Content_Code4
10Effectively Teach Required Content_Code4
15Understand the Diverse Needs of Students_Code4
15Know the Required Content_Code4
15Effectively Teach Required Content_Code4
17Understand the Diverse Needs of Students_Code4
17Plan for the Diverse Needs of Students_Code4
17Know the Required Content_Code2
17Effectively Teach Required Content_Code4
24Understand the Diverse Needs of Students_Code4
24Plan for the Diverse Needs of Students_Code4
24Know the Required Content_Code4
24Effectively Teach Required Content_Code2
29Understand the Diverse Needs of Students_Code4
29Plan for the Diverse Needs of Students_Code4
29Know the Required Content_Code4
29Effectively Teach Required Content_Code4
13Understand the Diverse Needs of Students_Code4
13Plan for the Diverse Needs of Students_Code4
13Know the Required Content_Code4
13Effectively Teach Required Content_Code4
7Understand the Diverse Needs of Students_Code4
7Plan for the Diverse Needs of Students_Code3
7Know the Required Content_Code4
7Effectively Teach Required Content_Code4
16Understand the Diverse Needs of Students_Code3
16Plan for the Diverse Needs of Students_Code3
26Understand the Diverse Needs of Students_Code3
26Plan for the Diverse Needs of Students_Code3
26Know the Required Content_Code3
26Effectively Teach Required Content_Code3
27Understand the Diverse Needs of Students_Code4
27Plan for the Diverse Needs of Students_Code4
27Know the Required Content_Code4
27Effectively Teach Required Content_Code4
18Understand the Diverse Needs of Students_Code4
18Plan for the Diverse Needs of Students_Code4
18Know the Required Content_Code4
18Effectively Teach Required Content_Code4
19Plan for the Diverse Needs of Students_Code4
19Know the Required Content_Code4
19Effectively Teach Required Content_Code2
21Understand the Diverse Needs of Students_Code4
21Plan for the Diverse Needs of Students_Code2
21Know the Required Content_Code2
21Effectively Teach Required Content_Code4
14Understand the Diverse Needs of Students_Code4
14Plan for the Diverse Needs of Students_Code3
14Know the Required Content_Code4
14Effectively Teach Required Content_Code4
20Understand the Diverse Needs of Students_Code4
20Plan for the Diverse Needs of Students_Code4
20Know the Required Content_Code4
20Effectively Teach Required Content_Code4
1 ACCEPTED SOLUTION
PaulOlding
Solution Sage
Solution Sage

Unless I'm reading the question incorrectly it should be just:

ResponseAVG = AVERAGE('Table'[Response])
 
You can control the decimal places and other formatting in the Measure Tools ribbon
PaulOlding_0-1626723087359.png

 

View solution in original post

2 REPLIES 2
PaulOlding
Solution Sage
Solution Sage

Unless I'm reading the question incorrectly it should be just:

ResponseAVG = AVERAGE('Table'[Response])
 
You can control the decimal places and other formatting in the Measure Tools ribbon
PaulOlding_0-1626723087359.png

 

Oh wow, I figured out the issue!  You are correct with the DAX, but the error I was encountering with AVERAGE was that my recoded "Response" column was in as a text field, when it should've been formatted as whole number.  As soon as I fixed that, all was well!  Thank you!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.