May 25 2023 04:36 AM
May 25 2023 04:36 AM
How do I create measures in the pivot table to create colums that calculate the percentage of each dates sum of TEU loaded against the capacity of that routes capacity to find the utlization percentage as well. There is only ever one transport per data in each route.
I'm trying to create this draft table in pivot.
|week xx||TEU in total||TEU Loaded %||TEU empty %||Trailer count||TEU space||utlization %|
The raw data that i have in a table is:
|Date||From||To||Orderer||Contract||Ref||Equipment Type||Equipment ID||Net weight||Gross weight||Tara weight||RID|
These data are given per each individual wagon
With these raw data colums I've set up in power query to create the calculated colums "route" "number of TEU loaded" per wagon, "count of trailers" that checks if a wagon is a trailer or not, "week number", "empty". Each of these values could be derived from the equipment type as they denote the amount of TEU capacity per wagon.
the pivot table i've created so far has the colums as is filtered like this per week
|Sum TEU loaded||Empty Wagon||Trailers||TEU in total (including empty TEU Capacity)|
Besides the Raw data, each route has a specific capacity of TEU. - For example.
These are written in another table formattet like just written
I've tried to create relationships between the "routes" column in each table. however, when I drag the "TEU capacity" field into the pivot table, it shows the sum of 45 +37 for each dates route, rather than its actual capacity per route.
May 25 2023 06:21 AM
To calculate the percentage of TEU loaded against the capacity of each route in your pivot table, you can create calculated fields or measures.
Here is how you can do it:
By following these steps (created with the help of AI), you should be able to calculate the percentage of TEU loaded against the capacity of each route and the utilization percentage in your pivot table.
May 25 2023 06:37 AM
May 25 2023 06:47 AM
To calculate the percentage of each date's sum of TEU loaded against the capacity of each route in your pivot table and find the utilization percentage, you can follow these steps:
TEU in total = [Sum TEU loaded] + [Empty Wagon]
Utilization % = [Sum TEU loaded] / [TEU in total] * 100
With these steps, you should have the desired columns in your pivot table: "TEU in total," "TEU Loaded %," "TEU empty %," "Trailers," "TEU space," and "Utilization %." The "TEU Loaded %" column will show the percentage of TEU loaded against the TEU in total for each date, and the "Utilization %" column will display the utilization percentage for each date based on the TEU loaded and the empty TEU capacity. In the heat of the moment and the lack of time, this text was created with the help of AI.
May 25 2023 07:09 AM