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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Brianoreilly
Helper II
Helper II

Calculating Averages dependent on Aggregation

Survey Sample Set.JPG

Hi All,

 

I have a scenario where I need to calculate the "% of Projects that meet our Customer Satisfaction Score" of >=5 and show the result in a Card Visual. 

 

The lowest granular level of information is Respondent. 

As you can have multiple Respondents per each Project, I first need to calculate the Average Score Per Each Project.

For instance "Facebook Project" average  = (4+7)/2 = 5.5 =Meets Satisfaction Score

 

I then need to formulate: 

 

CountIF( (Average of Project)>=5))

         Count of All Projects

 

Is there an easy way to do this.

I have tried SumX and Summarize functions but to no avail.

 

Appreciate any help.

 

Thanks,

Brian

 

 

 

1 ACCEPTED SOLUTION

I would just copy your query, strip out all other columns other than Project column, remove duplicates and you'd have a Projects table in 5 minutes.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

3 REPLIES 3
Greg_Deckler
Super User
Super User

It seems like this article presents a very similar scenario:

 

https://community.powerbi.com/t5/Community-Blog/Design-Pattern-Groups-and-Super-Groups/ba-p/138149

 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hi and thank you for the reply.

 

However, how can I calculated this, without having to create a "Projects Table" first?

 

Or is there a way?

 

Regards,

Brian. 

I would just copy your query, strip out all other columns other than Project column, remove duplicates and you'd have a Projects table in 5 minutes.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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