Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hello, community
I have a situation where I have contracted dates for vehicles, and I need to calculate the renovation date, which is after 6 months and after one year. The thing is that I have some vehicles with starting contracts on the 1st of March, therefore when I do a formula where I add a year to it, it can happen that the result is the 2nd (If I am not wrong, Power BI just adds 365 days to it, and I am guessing for shortened February years that is a potential problem).
This is my formula:
Does anybody know how to solve that scenario?
Thanks in advance for your time 🙂
Solved! Go to Solution.
Hi @Victormar
Instead of adding a 1 to the year or 6 to the month, why not just use EDATE? EDATE ( DATE (2024, 3, 1), 18 ) is DATE (2025, 9, 1) which is 18 months after the original date. Or if you want the date 18 months prior, just use -18.
March 1, 2024 becomes
thanks! that worked really good!
Hi @Victormar
Instead of adding a 1 to the year or 6 to the month, why not just use EDATE? EDATE ( DATE (2024, 3, 1), 18 ) is DATE (2025, 9, 1) which is 18 months after the original date. Or if you want the date 18 months prior, just use -18.
March 1, 2024 becomes
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
126 | |
113 | |
73 | |
65 | |
46 |