Hello Alteryx:
How can I convert this excel formula into Alteryx?
=NETWORKDAYS(A2, TODAY())
Appreciate your help.
Thanks
Solved! Go to Solution.
There is no specific formula to recreate this function in Alteryx, but we can recreate the output with a couple tools.
I'm using a Generate Rows tool to create all dates between the input date and today's date, then identifying the day of the week for each date, filtering out the weekends, and finally using a Summarize tool to count the days.
In the example I provided, I've included a Join tool just to validate that the output matches your desired output.
Let me know if this works for you.
Cheers!
Phil
Awesome!
On the Net workdays, I am getting 0 or 1. I can not see the exact difference number.
Hi -
I'm not sure I understand your question. When I run the workflow with the sample data that was attached, I see this:
Let me know if I can assist.
Mark
How about, I have start day. There is no end date. The Networkdays are calculated as of yesterday. Which I want as in Today()-1
I consider only Saturday and Sunday as weekends.
Hi -
Then you have two choices - either include an end date in your data source, or modify the Formula tool to use/calculate/default an end date as you desire.
The formulas are expecting an end date, so one needs to be provided.
Mark
User | Count |
---|---|
17 | |
15 | |
15 | |
8 | |
6 |