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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Lee_Mather
Regular Visitor

Advice Required: Data Spanning Months

Does anyone have any tips on how I can split a data field into two seperate months

 

I have a start date and an end date.  Where the start and end date cross into 2 seperate months I need to pro rata the data into each month

 

For Example

 

Start Date.......End Date........Total Amount

25th Feb 16....9th Mar 16......11

 

The issue is, is that the Total Amount is working days, and there are some weekends to take into consideration.

 

EDIT UPDATE

 

Thinking it through I think I need a DATEDIFF that excludes weekends.

  

Any help and advice, very gratefully recieved

 

ta

 

Lee

1 REPLY 1
Lee_Mather
Regular Visitor

I found the answer, work with the date table, add a weekday counter, 1 for weekdays, 0 for weekends and bank holidays then do a sum calculation based on the start and end date.

 

Thanks to Rob Collies blog post for this heads up.

 

Lee

 

 




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.