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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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