Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Quasae
Regular Visitor

Calculating future date from a date field and a term (1 year, 2 years, 3 years, etc..) field

Hi all,

  Very new to BI and am trying to figure out a way to calculate a future date of Payment Due based of of a Purchase date and a Term.   Basically, I want to take the Purchase Date and then add to it Term * Year(s).  So if an item was purchased on 4/26/2023 and has a Term of 1, then the Payment Due Date for that item would be 4/26/2024.   I have tried for hours to get a measure work and have utterly failed.  There has got to be an easy way to do this.   Any help would be greatly appriciated.

 

Quasae_0-1687989635119.png

 

6 REPLIES 6
some_bih
Super User
Super User

NextDue = DATEADD('2023'[Purchase Date],'2023'[Renewal Term],YEAR)





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






I also tried that and still retuned no value.  I did get it working using EDATE().  See below.  I would still like to know why DATEADD() would not work.

 

 

NextDue = 
IF
    ('2023'[Renewal Term] > 0.00,
        EDATE (
                '2023'[Purchase Date] ,
                '2023'[Renewal Term] * 12
            )
    )

 

 

It could be due to format of your column.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






some_bih
Super User
Super User

@Quasae removal term is "year" for lasting guarantee or something. whatever it is remove INT in your formula, other part leave as is and check results.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






some_bih
Super User
Super User

Hi @Quasae use function DATEADD

your column name = DATEADD(<your table name>[your column name], 1,year)

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Hi @some_bih
  I have actually tried this but for some reason it never produces a value.  I have tried it with 

NextDue = DATEADD('2023'[Purchase Date],1,YEAR) and NextDue = DATEADD('2023'[Purchase Date],INT('2023'[Renewal Term]),YEAR). Neither of them return a value.

 

Quasae_0-1688047928463.png

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.