Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi everyone - I'm having trouble figuring this out and would appreciate the help. I have a speadsheet of audit tasks and how many days it takes to complete. I want to generate a new start date for the next task by adding the days to complete to the original start date + 1 day. Please see the example below.
Original
Expected output
Solved! Go to Solution.
Hi @jakenguyen02 ,
First add a index column in Powerquery:
And then please create a new calculated column:
New Start Date =
VAR __index = 'Table'[Index]
VAR __start_date =
CALCULATE (
MAX ( 'Table'[Start Date] ),
ALLEXCEPT ( 'Table', 'Table'[Preparer] )
)
VAR __days =
CALCULATE (
SUM ( 'Table'[Days to Complete] ),
ALLEXCEPT ( 'Table', 'Table'[Preparer] ),
'Table'[Index] < __index
)
+ CALCULATE (
COUNTROWS ( 'Table' ),
ALLEXCEPT ( 'Table', 'Table'[Preparer] ),
'Table'[Index] < __index
)
VAR __result = __start_date + __days
RETURN
__result
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum -- China Power BI User Group
you can also try this to create a column
Proud to be a Super User!
you can also try this to create a column
Proud to be a Super User!
This also works perfectly. Thank you.
Hi @jakenguyen02 ,
First add a index column in Powerquery:
And then please create a new calculated column:
New Start Date =
VAR __index = 'Table'[Index]
VAR __start_date =
CALCULATE (
MAX ( 'Table'[Start Date] ),
ALLEXCEPT ( 'Table', 'Table'[Preparer] )
)
VAR __days =
CALCULATE (
SUM ( 'Table'[Days to Complete] ),
ALLEXCEPT ( 'Table', 'Table'[Preparer] ),
'Table'[Index] < __index
)
+ CALCULATE (
COUNTROWS ( 'Table' ),
ALLEXCEPT ( 'Table', 'Table'[Preparer] ),
'Table'[Index] < __index
)
VAR __result = __start_date + __days
RETURN
__result
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum -- China Power BI User Group
This is perfect. Thank you!!!!
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.
| User | Count |
|---|---|
| 46 | |
| 43 | |
| 39 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 68 | |
| 65 | |
| 31 | |
| 28 | |
| 24 |