Forum Discussion
RenanPNog
Helper I
3 years agoDax Week Calculation - Power BI
Hey folks! I'm having some trouble trying to calculate weeknumbers.... That's because, i have a sells time period, and i want to check how many weeks are left of that period. I've tried DATEDIFF f...
- 3 years ago
Payeras_BI
Solution Sage
3 years agoHi RenanPNog ,
And why not using DATEDIFF with WEEK as interval?
I hardcoded the dates for demonstration purposes.
RenanPNog
Helper I
3 years agoHello, J.Payeras.
The reason is because if i bring week as argument, it won't return me the expected result, check it out:
Also, please, check my top comment, where i show expected weeknum result for each day.
Thanks in advance.