The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
80 | |
73 | |
52 | |
50 |
User | Count |
---|---|
129 | |
123 | |
78 | |
64 | |
60 |