March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi folks,
Looking at a dataset where I'm trying to work out the duration of months open from the start date.
Example:
Start date | End date | Months Open |
05 December 2023 | 10 December 2023 | |
06 May 2022 | 01 April 2023 | |
07 November 2022 |
I was previously using
Solved! Go to Solution.
Hi,
try something like this:
Months Open = IF( ISBLANK('inYear'[End date]), DATEDIFF('inYear'[Start date], TODAY(), MONTH), DATEDIFF('inYear'[Start date], 'inYear'[End date], MONTH) )
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
Hi,
try something like this:
Months Open = IF( ISBLANK('inYear'[End date]), DATEDIFF('inYear'[Start date], TODAY(), MONTH), DATEDIFF('inYear'[Start date], 'inYear'[End date], MONTH) )
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
Thank you, that has worked wonderful!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
127 | |
85 | |
69 | |
53 | |
44 |
User | Count |
---|---|
202 | |
106 | |
100 | |
64 | |
56 |