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
Soledad
Regular Visitor

División con denominadores distintos

¡Hola! Tengo un problema cuando intento calcular el % de cumplimiento de una meta mensual (cobertura/Meta), donde la meta va a cambiar cada trimestre. 

 

 

 

Este un caso, donde mi meta de enero a marzo fue de un 40%, pero en abril mi meta cambio a un 55%, donde necesito que me divida por el valor que corresponde de acuerdo al mes.

Tengo otra tabla aparte con las metas de cada mes.

 

 

La formula que usa actualmente es de forma manualv (cobertura/0.40)

 

 

 

ayuda

 

 

 

 

 

1 ACCEPTED SOLUTION

Hi @Soledad ,

 

I think I understand what you mean, you want to divide the data for the corresponding month, right? If so, please try the column.

 

NewColumn = 
Analcoholicos[HNK470]
    / CALCULATE (
        SUM ( 'Urbano Con Patente'[COB HNK 470] ),
        FILTER (
            'Urbano Con Patente',
            'Urbano Con Patente'[JEFE DE VENTA]
                = FORMAT ( EARLIER ( Analcoholicos[PERIODO] ), "mmm" )
        )
    )

vkkfmsft_0-1651646660613.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
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

3 REPLIES 3
Soledad
Regular Visitor

Hola!

No se que ocurre que no me identifica el mes en curso.

La formula que utilice es:

Soledad_0-1651157084503.png

pero no me aplica un %distinto al mes en curso

(Analcoholicos[HNK470] es un campo calculado)

 

La cobertura corresponde a estos números:

Soledad_2-1651157402002.png

 

donde las metas variables son:

Soledad_4-1651157537198.png

 

Por ende todos los meses me los está tomando como Abril para el mismo vendedor

73% de enero/70%=104%

75% de Febrero/70%=107%

80% de Marzo/70%=114%

59% de Abril/70% 84%

 

Soledad_3-1651157439004.png

 

Debiese tomar de enero a febrero como meta el 60% y sólo en Abril tomar el 70%

 

Quiza es por formato de la fecha. La base para calcular la cobertura (Analcoholicos[HNK470]) está en formato dd-mm-aaaa. Tal como se muestra acá:

Soledad_5-1651157967596.png

 

 

 

 

Hi @Soledad ,

 

I think I understand what you mean, you want to divide the data for the corresponding month, right? If so, please try the column.

 

NewColumn = 
Analcoholicos[HNK470]
    / CALCULATE (
        SUM ( 'Urbano Con Patente'[COB HNK 470] ),
        FILTER (
            'Urbano Con Patente',
            'Urbano Con Patente'[JEFE DE VENTA]
                = FORMAT ( EARLIER ( Analcoholicos[PERIODO] ), "mmm" )
        )
    )

vkkfmsft_0-1651646660613.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-kkf-msft
Community Support
Community Support

Hi @Soledad ,

 

I create the following sample data:

 

vkkfmsft_0-1650870862224.png          vkkfmsft_1-1650870874829.png

 

Then use the measure or column:

 

Measure = 
SUM ( 'Fact'[cobertura] )
    / CALCULATE ( SUM ( goals[goal] ), goals[Month] = FORMAT ( TODAY (), "mmm" ) )
Column = 'Fact'[cobertura] / CALCULATE ( SUM ( goals[goal] ), goals[Month] = FORMAT ( TODAY (), "mmm" ) )

vkkfmsft_2-1650870982107.pngvkkfmsft_3-1650870991768.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.

Top Solution Authors