The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
I have this table:
Step 1 was figuring out how to get the earliest and latest dates for each StageName via the CreatedDate field which I did through these measures:
This helps setup to see how many days was spent in each stage. You can see those values on my Date Diff StageName measure above:
While this works as intended I would like to be able to grab working days only. So for 'Discovery' above, it was in that stage for 13 total days. However between 9/26 and 10/9 there are only 9 working days. How can I return that value instead?
Solved! Go to Solution.
Hi there!
This is quite a common issue. Search the forum for solved posts and I'm certain you'll find it! Pretty sure you'll need to create a date table with some custom columns like "Weekend vs. Weekday," "Holidays," and finally an "Is Workday," which typically returns a 1 or a 0, and then you SUM that column between your two dates.
Hope this helps!
User | Count |
---|---|
68 | |
63 | |
59 | |
54 | |
28 |
User | Count |
---|---|
182 | |
81 | |
64 | |
46 | |
38 |