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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Calcular la tasa de ejecución y la tasa de pedido

Hola Expertos,

Quiero calcular la tasa de ejecución de la actividad y la actividad que pide la hrate en función de la selección del mes actual del panel de filtro.

Por ejemplo, si estoy seleccionando el mes de abril en el panel de filtro y la fecha de hoy es 19/04/2020, mi no. de días serán 19.

1) Así que mi fórmula de velocidad de ejecución será como -

• Recuento (Actividad en abril hasta el 19)/ 19

Así que esta será mi tasa de carrera.

2) Así que mi fórmula de tasa de preguntas será como -

(Objetivo de la actividad - Actividad en abril hasta 19 ) / ( Días restantes en el mes de abril)

3) Si el usuario selecciona cualquier otro mes excepto el mes actual, entonces debe recibir un mensaje en la expresión que "Seleccione el mes actual solamente"

¿Es eso posible? Por favor, ayúdame

1 ACCEPTED SOLUTION

HOLA @bhuprakash

Puedes probar esta sencilla fórmula:

current run rate=
DIVIDE (
    (
        [Activity Target]
            - CALCULATE ( COUNT ( 'AD_V_Activity_Detail'[Activity_Insert_At] ) )
    ),
    DAY ( TODAY () )
)

required run rate=
DIVIDE (
    (
        [Activity Target]
            - CALCULATE ( COUNT ( 'AD_V_Activity_Detail'[Activity_Insert_At] ) )
    ),
    DATEDIFF(TODAY(),EOMONTH(TODAY(),0),DAY)+1
)

saludos

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

7 REPLIES 7
amitchandak
Super User
Super User

@bhuprakash ,

Trate como


Divide((([Activity Target] -CALCULATE(Count('AD_V_Activity_Detail'[Activity_Insert_At]))),datediff(eomonth('AD_V_Activity_Detail'[Activity_Insert_At],0),today(),day))

Anonymous
Not applicable

Infinity error.png

Este error viene con esta fórmula -

@bhuprakash , Trate como


Divide((([Activity Target] -CALCULATE(Count('AD_V_Activity_Detail'[Activity_Insert_At]))),datediff(maxx('AD_V_Activity_Detail',eomonth('AD_V_Activity_Detail'[Activity_Insert_At],0)),today(),day))

Anonymous
Not applicable

muchas gracias Amit para la ayuda rápida.

Esta expresión es para "Tasa de ejecución actual" o "velocidad de ejecución requerida"? porque el resultado está saliendo mal

Infinity error.png

Para Haryana en abril -

tasa de ejecución actual será (827-1)/19 a 43,47%

tasa de ejecución requerida será (827-1)/11 a 75,09%

HOLA @bhuprakash

Puedes probar esta sencilla fórmula:

current run rate=
DIVIDE (
    (
        [Activity Target]
            - CALCULATE ( COUNT ( 'AD_V_Activity_Detail'[Activity_Insert_At] ) )
    ),
    DAY ( TODAY () )
)

required run rate=
DIVIDE (
    (
        [Activity Target]
            - CALCULATE ( COUNT ( 'AD_V_Activity_Detail'[Activity_Insert_At] ) )
    ),
    DATEDIFF(TODAY(),EOMONTH(TODAY(),0),DAY)+1
)

saludos

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Muchas gracias.

Trabajar bien 🙂

Anonymous
Not applicable

Obtuve por debajo de la expresión de la comunidad, pero no me está dando días de MTD si selecciono abril de 2020

Total NumberDaysMonth ?
SUMX (
RESUMIR (
ADDCOLUMNS (
VALORES ( «AD_V_Activity_Detail»[Activity_Insert_At]),
"EOMonth", EOMONTH (' AD_V_Activity_Detail ' [Activity_Insert_At], 0)
),
EOMonth
),
DIA ([EOMonth])
)

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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