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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.