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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
mattyhatton
Regular Visitor

SUM and AVERAGE values showing up incorrectly in a visual

I have a table pulling through Actual Lead Times, which is a Calculated column, using the DATEDIFF formula for Order Date and Ship Date. The data within this column is correct, but only correct when it is set to 'Don't Summarise'

The oringal data can be see here for a snippet of one warehouse for January:

WAREHOUSE_MASTER(Warehouse Code)SHIPMENTS_COMBINED(Order Date)SHIPMENTS_COMBINED(Planned Ship Date)SHIPMENTS_COMBINED(Ship Date)SHIPMENTS_COMBINED(Actual Lead Time)
FGIR0131/01/202301/02/202306/06/2023126
FGIR0131/01/202301/02/202306/06/2023126
FGIR0131/01/202301/02/202306/06/2023126
FGIR0112/01/202312/01/202308/02/202327
FGIR0117/01/202317/01/202308/02/202322
FGIR0117/01/202317/01/202308/02/202322
FGIR0117/01/202317/01/202308/02/202322
FGIR0117/01/202317/01/202308/02/202322
FGIR0117/01/202317/01/202308/02/202322
FGIR0117/01/202317/01/202308/02/202322
FGIR0125/01/202325/01/202308/02/202314
FGIR0125/01/202325/01/202308/02/202314
FGIR0127/01/202327/01/202308/02/202312
FGIR0127/01/202327/01/202308/02/202312
FGIR0117/01/202317/01/202324/01/20237
FGIR0117/01/202301/02/202324/01/20237
FGIR0117/01/202301/02/202324/01/20237
FGIR0117/01/202301/02/202324/01/20237
FGIR0117/01/202301/02/202324/01/20237
FGIR0117/01/202301/02/202324/01/20237
FGIR0117/01/202301/02/202324/01/20237
FGIR0117/01/202301/02/202324/01/20237
FGIR0117/01/202301/02/202324/01/20237
FGIR0117/01/202301/02/202324/01/20237
FGIR0117/01/202301/02/202324/01/20237
FGIR0117/01/202301/02/202324/01/20237
FGIR0117/01/202301/02/202324/01/20237
FGIR0127/01/202327/01/202303/02/20237
FGIR0127/01/202327/01/202303/02/20237
FGIR0120/01/202320/01/202325/01/20235
FGIR0120/01/202320/01/202324/01/20234
FGIR0120/01/202320/01/202324/01/20234
FGIR0120/01/202320/01/202323/01/20233
FGIR0120/01/202320/01/202323/01/20233
FGIR0120/01/202320/01/202323/01/20233
FGIR0120/01/202320/01/202323/01/20233
FGIR0117/01/202317/01/202317/01/20230
FGIR0117/01/202317/01/202317/01/20230
FGIR0117/01/202317/01/202317/01/20230
FGIR0117/01/202317/01/202317/01/20230
FGIR0124/01/202324/01/202324/01/20230
FGIR0124/01/202324/01/202324/01/20230
FGIR0124/01/202324/01/202324/01/20230
FGIR0124/01/202324/01/202324/01/20230
FGIR0124/01/202324/01/202324/01/20230
FGIR0127/01/202327/01/202327/01/20230
FGIR0127/01/202327/01/202327/01/20230


The total figure for the actual lead time is 719, with an average of 15.3


I have then created a visual showing the Order Date, by Month and the Warehouse the order is coming from and the Actual Lead Time.

The issue is that the Actual Lead Time values are incorrect, there is no correlation between how much each value is out, there is no correlation between warehouse, or month or anything, they are just wildly inaccurate, ranging from 2-15% 

The results for the SUM of are shown below:

WarehouseYearMonthSum of Actual Lead Timem_Total 1
FGIR012023January833833

 

I have tried a variety of solutions including Greg's Measure Totals, The Final Word - Microsoft Fabric Community and nothing has worked, please can anyone offer any guidance on this?

Thanks in advance

1 REPLY 1
lbendlin
Super User
Super User

I have then created a visual showing the Order Date, by Month and the Warehouse

How?  Does your data model have a Dates table?  

Your sample data only has one warehouse, so is likely not covering your scenario.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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