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! Learn more

Reply
anil_patil65
New Member

Networkdays with filter function

Hi All,

I want to calculate Turn Around Days of the tasks by filtering couple of columns. I am using below formula, but its showing as error. Please help me on this.

 

TAD1 = CALCULATE(FILTER('Drawing & Design Review Tracker', 'Drawing & Design Review Tracker'[Release Status] = "Before Release"&&'Drawing & Design Review Tracker'[Drawing/Design] = "Drawing"),NETWORKDAYS('Drawing & Design Review Tracker'[Received Date],'Drawing & Design Review Tracker'[Delivery Date]))
 
Regards,
Anil Patil
1 ACCEPTED SOLUTION
anil_patil65
New Member

@FreemanZ ,

Thanks for your response 🙂

Now I have slightly modified it and its working fine. I wanted an average value of turn around days on a monthly basis by filtering few columns. Here is the modified version

 

TAD1 = CALCULATE(AVERAGEX('Drawing & Design Review Tracker',NETWORKDAYS('Drawing & Design Review Tracker'[Received Date],'Drawing & Design Review Tracker'[Delivery Date])),FILTER('Drawing & Design Review Tracker','Drawing & Design Review Tracker'[Drawing/Design]="Drawing"&&'Drawing & Design Review Tracker'[Release Status]="Before Release"))

View solution in original post

4 REPLIES 4
anil_patil65
New Member

@FreemanZ ,

Thanks for your response 🙂

Now I have slightly modified it and its working fine. I wanted an average value of turn around days on a monthly basis by filtering few columns. Here is the modified version

 

TAD1 = CALCULATE(AVERAGEX('Drawing & Design Review Tracker',NETWORKDAYS('Drawing & Design Review Tracker'[Received Date],'Drawing & Design Review Tracker'[Delivery Date])),FILTER('Drawing & Design Review Tracker','Drawing & Design Review Tracker'[Drawing/Design]="Drawing"&&'Drawing & Design Review Tracker'[Release Status]="Before Release"))
bhanu_gautam
Super User
Super User

@anil_patil65 , Try using updated measure

 

DAX
TAD1 =
CALCULATE(
NETWORKDAYS(
'Drawing & Design Review Tracker'[Received Date],
'Drawing & Design Review Tracker'[Delivery Date]
),
FILTER(
'Drawing & Design Review Tracker',
'Drawing & Design Review Tracker'[Release Status] = "Before Release" &&
'Drawing & Design Review Tracker'[Drawing/Design] = "Drawing"
)
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






@bhanu_gautam ,

 

If I flip the functions, I can't choose Received date and Delivered Date for Networkdays from the 'Drawing & Design Review Tracker' table.

 

Regards,

Anil Patil

hi @anil_patil65 ,

 

the first argument for CALCULATE should return a value, instead of a table (like the FILTER expression in your original post), that is why you encountered an error. 

 

CALCULATE can overwrite filter context, so you will not be able to filter the columns as long as you wrap it inside CALCULATE.

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.