Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
Check it out now!Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
Hi,
I need some M code in order to calculate the number of weeks between to dates, someone could help me how can I handle this issue, also I was able to handle this using DAX but, I need to calculate the total weeks on Power Query side
Thanks
Solved! Go to Solution.
Refer
like
=each Duration.Days([StartDay] - [endday])/7
Perhaps try Date.WeekOfYear([END DAY] - Date.WeekOfYear([START DAY]) + 1
Perhaps try Date.WeekOfYear([END DAY] - Date.WeekOfYear([START DAY]) + 1