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
Monty03
New Member

Average data rather than summed

Hi, I have a calculated column of 'lead times' calcualted from the submission date and completed date.  I also have a column of 'departments'  When I build a pie chart or any other visual, it sums the departments lead times whereas I want to show an average leadtime for each department.  Is there any way to do this?  Thanks in advance

5 REPLIES 5
mangaus1111
Solution Sage
Solution Sage

Which data type has the column Lead Time?

Try with this measure and put it in the Values field

Avg = AVERAGE(Facts38[Lead Time])
 
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks for the response.  The values 'lead time' is calculated as follows:

Lead Time =
AVERAGEX(
Sheet1,
IF(ISBLANK(Sheet1[Date Completed].[Date]),DATEDIFF(Sheet1[Submission Date].[Date], TODAY(),DAY),DATEDIFF(Sheet1[Submission Date].[Date],Sheet1[Date Completed].[Date],DAY)
))
 
This is the first time I have used DAX and I can't actually see a column of data...
I notice the box 'Data Category' is 'uncatergorized', could this have an affect?
 
Monty03_0-1666694686792.png

 

Please send sample data of your table Sheet1 and your expected result.

Monty03
New Member

Thanks for the reply, this is what I was expecting to see and have done that in the past but I have no option there.  Here is what I see.

 

Monty03_1-1666693765165.png

 

mangaus1111
Solution Sage
Solution Sage

Hi @Monty03 ,

 

try to select from here the avaerage, instead of the sum

mangaus1111_0-1666692359813.png

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

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.