cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Gillard_2 Frequent Visitor
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

Accepted Solutions
Microsoft v-cherch-msft
Microsoft

Re: Create Period Column

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
Microsoft v-cherch-msft
Microsoft

Re: Create Period Column

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

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors