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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
Coryanthony
Helper III
Helper III

Sum Items on business days only

Hello,

I need help totalling [Line Items Audited] but on business days only. My goal is to get the average Line Items Audited per business day in the month. 

So for October, if I audited 2000 line items on business days only and there was 21 business days - Average would be 95.24.

 

Line Items Audited = CALCULATE([Line Items Actioned], 'All Actioned'[Selected for Audit] = 1) +0
calendar_Workdays = NETWORKDAYS(MIN('Calendar'[Date]), MAX('Calendar'[Date]), 1, ALL(Holidays[Date] ))
 
Coryanthony_0-1702663166187.png

 

 
 
4 REPLIES 4
Fowmy
Super User
Super User

@Coryanthony 

Is this what you are looking for?

New MEASURE = 

DIVIDE (
    [Line Items Audited],
    [calendar_Workdays]
)
    
Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Hi @Fowmy 

We first need to calculate [line items audited] that occurred on business days only (excluding weekend and holidays ). 

@Coryanthony 

Line Items Audited  =
CALCULATE (
    [Line Items Actioned],
    'All Actioned'[Selected for Audit] = 1,
    NETWORKDAYS (
        MIN ( 'Calendar'[Date] ),
        MAX ( 'Calendar'[Date] ),
        1,
        ALL ( Holidays[Date] )
    )
)
Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

MotazOdeh757
Regular Visitor

I need your help guys to export PDF report or PPT for my Power Bi Dashboard note that my user is pro and i dont want to update it to premium and to be sent automatically via power automate, export automatically send email to specific recipient automatically

Helpful resources

Announcements
Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

Top Solution Authors