Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
Hi @Rigolleto
As tested, az38's suggestion is helpful.
Hi @Rigolleto
As tested, az38's suggestion is helpful.
Hi @Rigolleto
I've got no idea how do you get 5 weeks from 28-days period but try a custom column like
= Number.RoundUp(Number.From(([end day]-[Start day])/7))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.