Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
Given a field labeled "Start Date" with data of 11/5/2023 and a second field labeled "End Date" with date of 3/15/2025, how do I add columns of 2023 Month Count, 2024 Month Count and 2025 Month Count with expected results of 2, 12 and 3, respectively? I'm open to either Dax or PowerQuery examples whichever is most efficient would be preferred though. Thank you!
Solved! Go to Solution.
HI @Data5,
It sound like a common multiple date fields analysis requirement, I'd like to suggest you take a look at the following start/end date part if them suitable for your scenario:
Before You Post, Read This: start, end date
Regards,
Xiaoxin Sheng
Thanks for the suggestion. I ended up using the code below:
HI @Data5,
It sound like a common multiple date fields analysis requirement, I'd like to suggest you take a look at the following start/end date part if them suitable for your scenario:
Before You Post, Read This: start, end date
Regards,
Xiaoxin Sheng