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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
baronraghu_3011
Frequent Visitor

CALCULATE THE START DATE

HI,

 

I want to find out which is the 60th working date from today. 

 

example if today is 23rd December 2022

the previous working day 60 days before could be 15th September .

So here i am trying to find how to get my date as 15th Septemebr

5 REPLIES 5
v-shex-msft
Community Support
Community Support

Hi @baronraghu_3011,

Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.

If these also don't help, please share more detailed information and description to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
negi007
Community Champion
Community Champion

@baronraghu_3011 what i understand you want to go back 60 days from today excluding weekends. if this is what you want then you can create a below calc column in your main date table

 

 
 Workdays = IF(OR(WEEKDAY('Calendar'[Date])=1, WEEKDAY('Calendar'[Date])=7),0,1)
 Rank1 = RANKX(FILTER(FILTER('Calendar','Calendar'[Date]<TODAY()),'Calendar'[Workdays]=1),'Calendar'[Date])
negi007_0-1671804252685.png

you can now apply filters in your table.

 

you can refer to below link as well 

Solved: Add working days to a date - Microsoft Power BI Community




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

AbbasG
Memorable Member
Memorable Member

@baronraghu_3011  you can create a calculated column or a measure to deduct 60 days from your date column as below.

AbbasG_1-1671797853424.png

 

Can it be done in power query considering weekends as well as holiday

AlB
Super User
Super User

Hi @baronraghu_3011 

Will you be considering bank holidays as well or only excluding Saurdays and Sundays? If the former, you need a list of the holidays

 

SU18_powerbi_badge

 

Please accept the solution when done and consider giving a thumbs up if posts are helpful. 

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

 

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors