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.
I have a start date column and a number of days column, want to find expected end date.
Start Date | Number of Days | Expected End Date |
1/1/2020 | 62 |
Solved! Go to Solution.
Hi @Anonymous ,
Try use Date.AddDays() function.
https://docs.microsoft.com/en-us/powerquery-m/date-adddays
Result:
Best Regards,
Jay
Community Support Team _ Jay Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous create a calculated column using below dax syntex in your data table
Proud to be a Super User!
I'm getting the following error?
@AnonymousYou need to add the new column in powerbi desktop view not in power query window. There you can add new column which can take + operator to arrive at expected end date.
Proud to be a Super User!
Hi @Anonymous
try column
Expected End Date = [Start Date] + [Number of Days]
FYI: I got this error message:
Expression.Error: We cannot apply operator + to types Date and Number.
Details:
Operator=+
Left=7/30/2019
Right=203
Hi @Anonymous ,
Try use Date.AddDays() function.
https://docs.microsoft.com/en-us/powerquery-m/date-adddays
Result:
Best Regards,
Jay
Community Support Team _ Jay Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
79 | |
78 | |
37 | |
33 | |
31 |
User | Count |
---|---|
93 | |
81 | |
59 | |
49 | |
48 |