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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Average of a measure

Hi,

 

In my Power BI, I want to do make a measure (Utilization rate per Shipment per StageOfRoute) like below:

 

Shipment    StageOfRoute      Product          WeightOfProduct         MaxWeight             UtilizationRateOfContainer

     A                      1                      x                            3                              10                                         80%

     A                      1                      y                            5                              10                                         80%

 

     A                      2                      x                            3                              10                                         80%

     A                      2                      y                            5                              10                                         80%

 

     B                      1                      x                            1                              10                                         70%

     B                      1                      g                            2                              10                                         70%

     B                      1                      u                            4                              10                                         70%

 

     B                      2                      x                            1                              10                                         70%

     B                      2                      g                            2                              10                                         70%

     B                      2                      u                            4                              10                                         70%

 

Total:                                                                                                                                                       75%

 

As you can also see, I would like the total to be the average utilization rate of the shipments ((1*70 + 1*80)/2 = 75).

 

The measure that I made now is working on row level, but the total is not correct. The formula that I have now is:

 

UtilizationRateOfContainer =
CALCULATE (
    AVERAGEX(
        'Table1';
        DIVIDE (
            [SumWeightOfProduct (this is a measure that is a sum of the weight of product per shipment stage of route)];
[MaxWeight]
        )
    );
    ALLEXCEPT (
        'Tabel 1';
        'Tabel 1'[Shipment];
        'Tabel 1'[StageOfRoute];
        'Tabel 1'[Product]
    )
)
 
But it is not working. Can somebody help me?
 
Thanks a lot in advance!
0 REPLIES 0

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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