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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
sk007
Regular Visitor

Calculate Next_Business_Day based on multiple columns from different tables.

sk007_0-1654238477747.png

I want to calculate the required date as shown in the picture. 

I've already made the calendar table and calculated if_work_day (business day for a particular date). 

Date and if_work_day field comes from Calendar Table and rest of the fields comes from another table (TableA)

Logic is like this: 

If pay_frequency = bi_weekly && if pay_frequency = weekly: 

       required_date = end_date + 1 work day (only if_work_day in the next date is 1, if_work_day in the next date is 0, add another next date where if_work_day is 1)

if pay_frequency = semi_monthly && if pay_frequency = monthly:

      required_date = check_date - 3 work day (only if_work_day in that previous date is 1, if_work_day in the previous date is 0, go to another previous date where if_work_day is 1)

 

How do I calculate this in PowerBI? 

2 REPLIES 2
Anonymous
Not applicable

Hi @sk007 ,

 

Has this question been solved? If you have solved it, you can post your solution here. If any of the responses were helpful to you, please consider marking them as solutions, which will help more users find similar problems faster. If the problem is not solved, please feel free to let us know. Thanks in advance!

 

Best Regards,
Gao

Community Support Team

amitchandak
Super User
Super User

@sk007 , refer my blog for that

 

Traveling Across Workdays - What is next/previous Working day
https://community.powerbi.com/t5/Community-Blog/Travelling-Across-Workdays-Decoding-Date-and-Calenda...

 

 

Column example is there in the comments 

 

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.