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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
mbb
New Member

Daily Average Sales by Workingdays

Hello,

I have two tables; one is for sale, warehouse name and order date,the other is for dates and working dates. I have connected these two tables. However, 

I want to create a new measure which is Sales / Working Days for each warehouses. For example; for the table below, I would like to have new calculated column, Avg Sales Per Day,  and i.e. for 2021 January the value should be 1237/19, For 2021 February =863/19, for 2021 March 1239/23 and so on. In the example I populate only one warehouse, but i have more than one.

Any help on how to do it?

 

Thank you so much in advance

 

mbb_1-1656020341900.png

 

 

1 REPLY 1
amitchandak
Super User
Super User

@mbb , Try like

divide(Sum(Table[sales]), COUNTROWS(FILTER(ADDCOLUMNS(CALENDAR(Min('Date'[Date]),Max('Date'[Date])),"WorkDay", if(WEEKDAY([Date],2) <6,1,0)),[WorkDay] =1)))

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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