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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
supriyad
Frequent Visitor

Calculate Mean using Measure

Hi all,
I want to calculate the mean for following values shows in picture.

I am filtering data Using Program Manager Name. 

data.PNG

 

 

I used following measure to calculate mean :

 

Mean = CALCULATE(AVERAGE(' Project Rank'[Score]))

 

But it giving me wrong values...same thing happen with my Standard deviation measure.

I need to calculate Zscore using this.
Plz suggest me regarding above,

1 ACCEPTED SOLUTION

@supriyad

 

I see now.

 

What you want is this : 

Mean2 = DIVIDE('Project Rank'[Score];CALCULATE(COUNT('Project Rank'[Score]);ALL('Project Rank')))

 

(Isn't your mean supposed to be more something like 'Score / Total of score' ? It just seems strange that you divide the score by the count of your table ... Maybe it's just me and I'm stupid today ahah)

 

If it worked, don't forget to mark your topic as solved

 

- Quentin

View solution in original post

7 REPLIES 7
quentin_vigne
Solution Sage
Solution Sage

Hi @supriyad

 

You want the mean per Month & Year or per Project ID for each line ? 

What I want to know is : What result do you expect from your Mean column ? 

 

- Quentin

data1.PNG

 

Hi @quentin_vigne

 

I have added expected mean column in my table.

I need Project wise Zscore in that particuler Month Year

@supriyad

 

What is the formula that you used for you expected mean? (Like what is the calculation you need me to translate to dax)

 

- Quentin

@quentin_vigne Currently I calculated Expected mean values manually to show you..

But I am expecteing My measure should give me values like this..

@supriyad

 

Yes but how did you calculated them manually ? 

 

- Quentin

@quentin_vigne

 

Suppose Project 1 having score 3 then mean should 3/11 i.e total count of projects according to Month Year.

@supriyad

 

I see now.

 

What you want is this : 

Mean2 = DIVIDE('Project Rank'[Score];CALCULATE(COUNT('Project Rank'[Score]);ALL('Project Rank')))

 

(Isn't your mean supposed to be more something like 'Score / Total of score' ? It just seems strange that you divide the score by the count of your table ... Maybe it's just me and I'm stupid today ahah)

 

If it worked, don't forget to mark your topic as solved

 

- Quentin

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors