cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Andrea78m Frequent Visitor
Frequent Visitor

average per hour

Cattura.PNG

hallo,

I'd get for each operator the average throught the hours

so I put:

DDD =
AVERAGEX (
    SUMMARIZE (
        DMGLR04L;
        DMGLR04L[CODICE_OPERATORE];
        DMGLR04L[ORA_];
        "ZZZZ"; SUM ( DMGLR04L[NUMERO_COLLI_INTERI_NON_PALLET] )
    );
    [ZZZZ]
)

 

but the sum is not corret

The result is 230,33, instead 205,57

 

where is the error?

thanks for help

 

2 REPLIES 2
v-ljerr-msft Super Contributor
Super Contributor

Re: average per hour

Hi @Andrea78m,

 

Could you try the formula below to see if it works? Smiley Happy

DDD =
AVERAGEX (
    SUMMARIZE (
        DMGLR04L;
        DMGLR04L[CODICE_OPERATORE];
        DMGLR04L[ORA_];
        "ZZZZ"; CALCULATE ( SUM ( DMGLR04L[NUMERO_COLLI_INTERI_NON_PALLET] ) )
    );
    [ZZZZ]
)

Regards

Andrea78m Frequent Visitor
Frequent Visitor

Re: average per hour

unfortunately the result is the same.

I tried also to count ORA_:

DDD =
AVERAGEX (
    SUMMARIZE (
        DMGLR04L;
        DMGLR04L[CODICE_OPERATORE];
        DMGLR04L[ORA_];
        "ZZZZ"; count ( DMGLR04L[ORA_] )
    );
    [ZZZZ]
)

 

but it gives me an incorrect value.

It gives me 21.33 instead 3??

 

Cattura.PNG

Helpful resources

Announcements
Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Power BI Helps Homeless and Trouble Youth

Power BI Helps Homeless and Trouble Youth

We spoke with Power BI Super User, Greg Deckler, about his charity work

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 75 members 1,148 guests
Please welcome our newest community members: