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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.