Use the DateDiff function :
DATEDIFF function (DAX) - DAX | Microsoft Learn------------------------------
James Watts
Business Intelligence Analyst
------------------------------
Original Message:
Sent: Dec 18, 2022 08:23 PM
From: Aadish Shah
Subject: Calculating Expiry Date
Hi!
I need some assistance on calculating a Expiry date:
2 years from the order date.
Examples:
- order date January 1st 2020 - Expiry date January 1st 2022
I'm struggling hard on how I would calculate this out.
Thanks!
------------------------------
Aadish Shah
------------------------------