Skip to main content
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Frequent Visitor

Year Number Calculation

Hello there,

I have caluclated a week number starting from Saturday which works fine. But when new year starts it starts adding from 1 again.

I want to calculate week number in such a way thet at the end of year it shouldn;t starting from 1 but conitnue counting like 53 53 55 56 to the end of date. I have years of data.

Super User
Super User

@ub2811 , Take the min week start from Saturday and calculate from that.


Min Week St = min([Week Start Date])

Week Number = Quotient(Datediff([Min Week St],[date],day),7) +1


You can also refer for Saturday week

Any Weekday Week - Start From Any day of Week

It worked for week, thanks.

I want to do same for the month as well. How can we do that, keepin min dthat a month can have variable days

Helpful resources

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.


Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.


Fabric certifications survey

Certification feedback opportunity for the community.