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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Gr8apmech
Helper I
Helper I

Calculating daily values for Defects per Unit (DPU), getting monthly data now...

I'm looking to get to a daily DPU in my measures, currently they only result in monthly.  Some days there are zero(0) defects so I added the '+0' to see a number but i believe it may be affecting my division/formula below?  I am using a calendar table as my date and have set up my relationship to my receipt date.

 

This formula results the same if i remove the Calculate/Allselected portion...

1 DPU = Calculate(
2    (DIVIDE([Defects],('Delivery'[LNs Issued]))*1000000)+0,
3    Allselected('Date'[Date]))
 

Current Result/Table:

DateDPU
7/1/2024 0:0018226.002430133656
7/2/2024 0:0018226.002430133656
7/3/2024 0:0018226.002430133656
7/4/2024 0:0018226.002430133656
7/5/2024 0:0018226.002430133656
7/6/2024 0:0018226.002430133656
7/7/2024 0:0018226.002430133656
7/8/2024 0:0018226.002430133656
7/9/2024 0:0018226.002430133656
7/10/2024 0:0018226.002430133656
7/11/2024 0:0018226.002430133656
7/12/2024 0:0018226.002430133656
7/13/2024 0:0018226.002430133656

 

What i'd like to achieve:

DateDPU
7/1/2024

3560.01234

7/2/202429751.01234
7/3/20242134.10234
7/4/20245110.1110
7/5/20241820.9874
1 ACCEPTED SOLUTION

In this scenario, yes - it's what causing all the numbers to be the same.

View solution in original post

5 REPLIES 5
Gr8apmech
Helper I
Helper I

Gr8apmech_0-1725656286392.png

results!  thanks!!!

 

lbendlin
Super User
Super User

Please explain the reasoning behind using ALLSELECTED.

 

Can you provide sample input data?

@lbendlin There really is no reason other than i was trying to use the filter to be able to select a few days of the month and determine the DPU for that period of time.  Allselected was used to filter with...is that the wrong method to use?  

 

This formula provides the same results:  

DPU = DIVIDE([Defects],('Delivery'[LNs Issued]))*1000000
 
 

In this scenario, yes - it's what causing all the numbers to be the same.

I found that i also had the ALLSELECTED on my 'Defects' formula...removed that and BOOM it works!

 

Thanks!  

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.