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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
mgalat
Regular Visitor

Percentage utilization filtered on monthly basis

Hi Power BI comunity,

 

I have a problem with the calculation and display of the utilization percentage on a monthly basis. Namely, I collect the inventory balance on a monthly basis, and my capacity is fixed per warehouse. I need that when filtering a certain month, I get the utilization based on the given fixed capacity per warehouse.

Database example:

 Table monthly stock   
      
PlantMaterialUoMStockDateWarehous
AA101TH1.501/01/2024A1
AA102TH0.501/01/2024A1
AA103TH101/01/2024A2
AB101TH401/01/2024A3
AB102TH3.501/01/2024A3
AB103TH201/01/2024A3
AC104TH601/01/2024A4
AA101TH2.501/02/2024A1
AA102TH401/02/2024A1
AA103TH701/02/2024A2
AB101TH501/02/2024A3
AB102TH3.501/02/2024A3
AB103TH901/02/2024A3
AC104TH1101/02/2024A4
      

 

 Table warehouse capacity 
     
PlantWarehouseCapacityTotal qtyCapacity utilisation %
AAA178.5 
AAA238 
ABA31027 
ACA41517 
1 ACCEPTED SOLUTION

Hi, problem solved.

I changed the calculation for utilization

Utilisation % = Consolidated[SU Qty 2] /                  SELECTEDVALUE(WHs_Capacity[Capacity])
 
And in the visualisation I added the sum of qty from the main table.
Now when filtering between months, utilisation % is also updated.
 
mgalat_0-1708007788116.png

 

View solution in original post

2 REPLIES 2
v-heq-msft
Community Support
Community Support

Hi @mgalat ,

Here some steps that I want to share, you can check them if they suitable for your requirement.

Here is my test data:

vheqmsft_0-1707964032627.png
1.Open power query and group by Plant and warehouse

vheqmsft_1-1707964190445.png

2.Create one to one relationship 

vheqmsft_2-1707964241001.png

3.Create a measure

utilisation % = SELECTEDVALUE('warehouse capacity'[Capacity])/SELECTEDVALUE('monthly stock'[Sum Stock])

Final output

vheqmsft_3-1707964314233.png

Best regards,

Albert He

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 



 

Hi, problem solved.

I changed the calculation for utilization

Utilisation % = Consolidated[SU Qty 2] /                  SELECTEDVALUE(WHs_Capacity[Capacity])
 
And in the visualisation I added the sum of qty from the main table.
Now when filtering between months, utilisation % is also updated.
 
mgalat_0-1708007788116.png

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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