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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

Filtering Calculation

Hello all,

 

Below is an example of the data I am looking to manipulate via Dax.  I want to ensure that as I filter by the week and consolidate the products into one Service % or if I filter to get the YTD view the % stays true to the sum of the loads by the sum of the lates.  I have been bringing in different versions of the table with different SQL statements, but I want to bring in one table and manipulate via DAX functions.  The % is throwing me off because if I use the AVG in my visuals it is mostly not accurate.  

 

Thanks all

 

 

Year

Commodity

WeekLoadLateService %
2020Toys125

3

88%

2020Games1471372%
2020Toys22514 
2020Games2153 
      
2 REPLIES 2
Anonymous
Not applicable

Everyday we deliver loads and we track late deliveries to come to a service % ((Loads-Lates)/Loads).  That is the calculation I am looking to create via DAX.  I want the Service % to be accurately reflected as I look at the data by week, month, year for example.  I also want to be able to look at the data by service % combining the commodity while look at it by the same time manipulation.  

 

I have created multiple tables from the daily data via grouping in Power query, but I know there is a better way via DAX.

 

daxer-almighty
Solution Sage
Solution Sage

Unclear. Can you please elaborate? We want a clear, step-by-step example of the calculation. Thanks.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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