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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
Gillard_2
Frequent Visitor

Create Period Column

I currently have a date table with dates for the next five years.

I would like to create a new Period Column that is 13 four week periods starting on a specified date?

Thanks in advance

1 ACCEPTED SOLUTION
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @Gillard_2 

You may create a rank column and use IF condition to get the column.If it is not your case,please share more details for us so that we could help further on it.For example:

Rank = RANKX('Date','Date'[Date],,ASC)
Column = IF('Date'[Rank]>=5&&'Date'[Rank]<=5+7,"week1",IF('Date'[Rank]>=5+7&&'Date'[Rank]<=5+7*2,"week2"))

a1.png

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @Gillard_2 

You may create a rank column and use IF condition to get the column.If it is not your case,please share more details for us so that we could help further on it.For example:

Rank = RANKX('Date','Date'[Date],,ASC)
Column = IF('Date'[Rank]>=5&&'Date'[Rank]<=5+7,"week1",IF('Date'[Rank]>=5+7&&'Date'[Rank]<=5+7*2,"week2"))

a1.png

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon & SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.