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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
hisackman
Frequent Visitor

Net Working Days through Today

Having trouble with getting networing days through today to work appropriately in the tables. There is a filter on the page, but all months are showing the total networking days. Can someone help with this issue?

 

YTD Net Working Days =
Var _FirstDate = Min ( 'Calendar'[Date])
Var _LastDate = today()-1
Var _Holiday = calculatetable( distinct('Calendar'[Date]),'Calendar'[IsHoliday] = "TRUE")

Return
if(LOOKUPVALUE('Calendar'[Sales Season],'Calendar'[Date],_FirstDate)="AEP",
networkdays(_FirstDate,_LastDate,11,_Holiday),
networkdays(_FirstDate,_LastDate,1,_Holiday))
 
hisackman_0-1730384034818.png

 

 
2 REPLIES 2
FreemanZ
Super User
Super User

hi @hisackman ,

 

try like:YTD Net Working Days =

Var _FirstDate = Min ( 'Calendar'[Date])

Var _LastDate = Max ( 'Calendar'[Date])

Var _Holiday = calculatetable( distinct('Calendar'[Date]),'Calendar'[IsHoliday] = "TRUE")

 

 

Return

if(LOOKUPVALUE('Calendar'[Sales Season],'Calendar'[Date],_FirstDate)="AEP",

networkdays(_FirstDate,_LastDate,11,_Holiday),

networkdays(_FirstDate,_LastDate,1,_Holiday))

That gives me the working days through the selected date. What I'm trying to see is my run rate. I.e. if I select a preiod longer than today, it will show the average sales per day over the ytd working days, multiplied by the net working days as my run rate. Essentially ... (YTD sales / YTD days) * period net working days

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors