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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.