Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi,
Suppose I have a weekly plan through a whole month, the table may like this:
The plan will be handled from 1st weekday(Start Day) to 5rd weekday(End Day) each week originally. I want to transform them to concrete Start Dates and End Dates in the table by creating custom columns.
However, it will not be handled on the day IsLeave = 1. For example, in a week from 2024/12/30 to 2025/1/5, the original Start Date should be 2024/12/30, it delayed to 2024/12/31 due to 12/30 IsLeave = 1. In addition, the original End Date should be 2025/1/3, it delayed to 2025/1/7 due to 4 days leave in a week. So the expected output table may like:
How can I arrive it in Power Query, thanks a lot
Regards
do you mean weekdays or workdays? What is your definition of weekend?
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information or anything not related to the issue or question.
If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 9 | |
| 8 | |
| 7 | |
| 6 | |
| 5 |