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
JasonFurtner
Regular Visitor

Grouped average with Slicers gives wrong values

Hi everyone.

 

I have a data set that looks like this:

AssemblyNameProcessStepSerialNumberTouchTimeDate
Assembly1BuildN001303/1/2023
Assembly1BuildN002353/2/2023
Assembly1BuildN003253/3/2023
Assembly2BuildN004403/1/2023
Assembly2TestN004503/1/2023
Assembly2MeasureN004203/2/2023
Assembly2BuildN005353/2/2023
Assembly2TestN005453/2/2023
Assembly2MeasureN005303/4/2023

 

I am looking at the touch time for various assembly processes on the manufacturing line. Some assemblies only have one process step, while others have more than one. 

When I use a slicer to look at the touch time data for one assembly, and one process step, the average appears to work correctly.

 

But when I try use a slicer to look at the touch time for multiple process steps, the totals are still correct but the average goes down. I believe this is because it is taking the total sum and then dividing by the total number of steps. What I want is for it to take the average of each individual process step and then add those averages together. 

1 ACCEPTED SOLUTION
v-tangjie-msft
Community Support
Community Support

Hi @JasonFurtner ,

 

According to your description, here are my steps you can follow as a solution.

(1)  My test data is the same as yours.

(2) We can create a measure. 

Average Touch Time = SUMX( VALUES('Table'[ProcessStep]), AVERAGE('Table'[TouchTime]) )

(3) Then the result is as follows.

vtangjiemsft_0-1681365700211.png

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

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

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

On the data that you have shared, show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-tangjie-msft
Community Support
Community Support

Hi @JasonFurtner ,

 

According to your description, here are my steps you can follow as a solution.

(1)  My test data is the same as yours.

(2) We can create a measure. 

Average Touch Time = SUMX( VALUES('Table'[ProcessStep]), AVERAGE('Table'[TouchTime]) )

(3) Then the result is as follows.

vtangjiemsft_0-1681365700211.png

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

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

Thanks that works perfectly!

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.