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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Get sprint number from date

Hi, I'm new to Power BI.

I have a table with a column called "Due date." I am trying to create a new column: sprintNumber, where if due date between A&B then  sprintNumber=1, if due date between B&C then  sprintNumber=2 and so on and so forth.

How could I do that in PowerBI desktop?

Thanks in advance!

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

 

May I ask if your problem has been solved? Did amitchandak's post above help you? If any of the posts are helpful, then please consider accepting it as a solution to help other members find it faster. Many thanks!

 

If this doesn't work for you, would you mind providing some data that does not contain private information?

It makes it easier to give you a solution.

  1. Sample (dummy dataset) data as text, use the table tool in the editing bar
  2. Expected output from sample data
  3. Explanation in words of how to get from 1. to 2.

How to provide sample data in the Power BI Forum

How to Get Your Question Answered Quickly

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

Tahreem24
Super User
Super User

@Anonymous  Can you share some sample data by copy paste it over here or share in Excel? 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
amitchandak
Super User
Super User

@Anonymous , You can create a new column like

 

switch( True(),

[Due Date] >= date(2020,1,31)  && [Due Date] < date(2020,3,31)  , 1 ,

[Due Date] >= date(2020,3,31)  && [Due Date] < date(2020,5,31)  , 2 ,

// Add other

)

 

You can also do based on another date

switch( True(),

[Due Date] >= [Start Date] && [Due Date] < c   +15 , 1 ,

[Due Date] >=  [Start Date] +15  && [Due Date] <  [Start Date] +30  , 2 ,

// Add other

)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors