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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.