cancel
Showing results for
Did you mean:
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.

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

Accepted Solutions
Highlighted
Senior Member

## Re: Calculate Mean using Measure

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

7 REPLIES 7
Senior Member

## Re: Calculate Mean using Measure

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

Frequent Visitor

## Re: Calculate Mean using Measure

I have added expected mean column in my table.

I need Project wise Zscore in that particuler Month Year

Senior Member

## Re: Calculate Mean using Measure

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

- Quentin

Frequent Visitor

## Re: Calculate Mean using Measure

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

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

Senior Member

## Re: Calculate Mean using Measure

Yes but how did you calculated them manually ?

- Quentin

Frequent Visitor

## Re: Calculate Mean using Measure

@quentin_vigne

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

Highlighted
Senior Member

## Re: Calculate Mean using Measure

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

Announcements

#### Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

#### Community News & Announcements

Get your latest community news and announcements.

#### Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

#### Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Top Kudoed Authors
Users Online
Currently online: 126 members 1,485 guests
Recent signins: