Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register 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!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
78 | |
76 | |
53 | |
37 | |
31 |
User | Count |
---|---|
101 | |
56 | |
51 | |
45 | |
40 |