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])

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])

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Top Solution Authors