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 August 31st. Request your voucher.
Hello,
I have a table with an incident date. I need to create a column that calculates the business days between that date and todays date so that I can filter a report to only show me incidents older than 2 business days. I do have a date table that has a is weekday true/false column.
Solved! Go to Solution.
Hi @AmberJane ,
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
Date table:
Table:
(2) We can create a calculated column.
Column = COUNTROWS(FILTER('Date Table',[date]>=EARLIER('Table'[incident date]) && [date] <=TODAY() && [weekday]=TRUE()))
(3) Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @AmberJane ,
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
Date table:
Table:
(2) We can create a calculated column.
Column = COUNTROWS(FILTER('Date Table',[date]>=EARLIER('Table'[incident date]) && [date] <=TODAY() && [weekday]=TRUE()))
(3) Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Worked!! super easy to follow. Appreciate you 🙂
Does your date table also have a business day flag column?
User | Count |
---|---|
11 | |
8 | |
6 | |
6 | |
6 |
User | Count |
---|---|
23 | |
14 | |
13 | |
10 | |
8 |