cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
obuolys123
Helper I
Helper I

Running total by weeks including start date and end date

Hello, I need to find something like running total but it depends on start and end dates.

Situation:

I have trucks that have start and end dates of working. I need to find how many trucks were working on particular weeks.  Example below.

obuolys123_1-1663247911629.png

 

I have Trucks table with its plate number, start and end date and I have a Calendar table. Calendar table has relationship with truck table on Calendar[date] and Trucks[start_date].  

The main problem is that I can't find a way to calculate all trucks that has start_date less than date of weeks in report.

Do you have any ideas how to count that?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@obuolys123 , refer if this blog can help

https://community.powerbi.com/t5/Community-Blog/How-to-divide-distribute-values-between-start-date-o...

 

You need to have a week in date table and you need a measure

 

Concatenatex(Table, Table[Truck])



!! Microsoft Fabric !!
Microsoft Power BI Learning Resources, 2023 !!
Learn Power BI - Full Course with Dec-2022, with Window, Index, Offset, 100+ Topics !!
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@obuolys123 , refer if this blog can help

https://community.powerbi.com/t5/Community-Blog/How-to-divide-distribute-values-between-start-date-o...

 

You need to have a week in date table and you need a measure

 

Concatenatex(Table, Table[Truck])



!! Microsoft Fabric !!
Microsoft Power BI Learning Resources, 2023 !!
Learn Power BI - Full Course with Dec-2022, with Window, Index, Offset, 100+ Topics !!
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!

Helpful resources

Announcements
May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Submit your Data Story

Data Stories Gallery

Share your Data Story with the Community in the Data Stories Gallery.

Top Solution Authors