hi all,
I am using an Add Column custom column to hold the number of years between the Start Date and today. My start dates are in column "Start Date". Power query formula is:
=Duration.Days(DateTime.Date(DateTime.LocalNow()) - [Start Date])/365
This gives me the duration in decimal years eg 7.29354768, 0.254677894, 9.65473922. To get this to whole numbers, as a next step i can use Round Down from the Transform menu (Rounding>Round Down) which accurately reduces the decimal numbers to whole numbers.
However, if i try to apply the round down function to the duration day formula mentioned above, i get errors.
this calculation forms part of a larger "if" statement so i need to have only one formula in one step.
any suggestions?
I am using an Add Column custom column to hold the number of years between the Start Date and today. My start dates are in column "Start Date". Power query formula is:
=Duration.Days(DateTime.Date(DateTime.LocalNow()) - [Start Date])/365
This gives me the duration in decimal years eg 7.29354768, 0.254677894, 9.65473922. To get this to whole numbers, as a next step i can use Round Down from the Transform menu (Rounding>Round Down) which accurately reduces the decimal numbers to whole numbers.
However, if i try to apply the round down function to the duration day formula mentioned above, i get errors.
this calculation forms part of a larger "if" statement so i need to have only one formula in one step.
any suggestions?