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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Calculate total average

Hi all,

I am calculating a column called "Comletion".

The measurs are 

  • Inspection KPI 2 = COUNT('Inspection Staff'[Form ID])-'Employee Transaction'[84 Hours Rule ]
  • 0 or 1 = IF('Inspection Staff'[Inspection Counts]=00, IF('Inspection'[Inspection KPI 2]<0, 'Inspection Staff'[Inspection Counts]/[84 Hours Rule ],1))
  • Completion =AVERAGEX ( VALUES ( 'Staff'[Staff Name]), 'Inspection'[0 or 1] )
 
All the numbers in hte matrix table are reight. But if I use job name and completion to make a graph, the completion number are wired. And I pull the completion in a card, the number is also wrong.
 
Could anyone help to write a new measure to make the number right in the card and in the graph?
 
Thank you in advance!
Branko
 
babyjb123_1-1668443612899.png

 


 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I have already address the issue. I re-write the measure of "completion" as follow:

Completion for Job = DIVIDE(SUMX(VALUES('Staff'[User Name]),'Inspection'[0 or 1]),COUNTX(VALUES('Staff'[User Name]),'Inspection Staff'[Inspection Counts for Inspection Crew]))
 
Now the outcoming from both matrix table and graph are equal. 
 
babyjb123_0-1668787635418.png

 

 
 

 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

I have already address the issue. I re-write the measure of "completion" as follow:

Completion for Job = DIVIDE(SUMX(VALUES('Staff'[User Name]),'Inspection'[0 or 1]),COUNTX(VALUES('Staff'[User Name]),'Inspection Staff'[Inspection Counts for Inspection Crew]))
 
Now the outcoming from both matrix table and graph are equal. 
 
babyjb123_0-1668787635418.png

 

 
 

 

v-xiaotang
Community Support
Community Support

HI @Anonymous 

Thanks for reaching out to us.

could you share a sample .pbix file for us to troubleshoot? thanks

 

 

Best Regards,

Community Support Team _Tang

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

tamerj1
Super User
Super User

Hi @Anonymous 

Are you sure both job name columns in matrix and charts are the same column from the same table?

Anonymous
Not applicable

Yes, they are in the same column and same table.

babyjb123_0-1668454898239.pngbabyjb123_1-1668454915729.png

 

Helpful resources

Announcements
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.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors