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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
FILIPKACZMAR
Advocate I
Advocate I

Counting days help me pls

Hello,

I need some help. I wrote the code:

 

counting without weekends =
VAR First = 'SQA list 2022'[End of Inspection]
VAR Last = 'SQA list 2022'[Delivered Report]
VAR First1 =
IF ( First <= Last, First, Last - 1 )
VAR Last1 =
IF ( First <= Last, Last, First1 )
RETURN
IF ( not isblank (first) && not isblank (last),
COUNTROWS (
FILTER (
ADDCOLUMNS ( CALENDAR ( First1, Last1 ), "Day of Week", WEEKDAY ( [Date], 2 ) ),
[Day of Week] <> 6
&& [Day of Week] <> 7
)
)
)

It is couting days from the End of Inspection Date, I want to count the days not from that day, but from next day. Can you help me?

Thank you 🙂
3 REPLIES 3
johnt75
Super User
Super User

Try

Working days = NETWORKDAYS('SQA list 2022'[End of Inspection] + 1, 'SQA list 2022'[Delivered Report]) 

not working 😞

you'll need to more specific. is it giving an error, what result is it giving ?

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.