Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance 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 |
---|---|
77 | |
76 | |
44 | |
31 | |
26 |
User | Count |
---|---|
97 | |
89 | |
52 | |
48 | |
46 |