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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
CongPham
Helper I
Helper I

Ayuda para calcular la base de columnas de destino en la columna de origen y la propia columna de destino

Hola a todos

Tengo algún problema y no sé cómo escribir DAX para obtener valor en Target Column (pleass ver la imagen)

¿Alguien puede ayudarme a amar esto?

¡Muchas gracias!

formula2.jpg

1 ACCEPTED SOLUTION

Hola @CongPham ,

El truco es encontrar el reglamento y establecer una fórmula general. Consulte la siguiente imagen:

1-2.PNG

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

View solution in original post

6 REPLIES 6
v-eachen-msft
Community Support
Community Support

Hola @CongPham ,

Puede utilizar la función POWER() y la función SUMX() para hacerlo.

Necesita dos medidas:

Power =
VAR a =
    CALCULATE ( MAX ( 'Table'[No] ), ALLSELECTED ( 'Table' ) )
RETURN
    POWER ( 0.25, a - SELECTEDVALUE ( 'Table'[No] ) )
        * SELECTEDVALUE ( 'Table'[Value] )
Target =
VAR a =
    CALCULATE ( MAX ( 'Table'[No] ) )
RETURN
    ROUND (
        0.75
            * SUMX (
                FILTER ( ALLSELECTED ( 'Table' ), 'Table'[No] <= MAX ( 'Table'[No] ) ),
                [Power]
            )
            + POWER ( 0.25, a ) * 466,
        0
    )

Aquí está mi resultado.

1-1.PNG

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

@v-eachen-msft Muchos agradecen
Tengo el verdadero valor que necesito, pero todavía no entiendo el significado de tu fórmula.
¿Podrías darte un consejo?

Hola @CongPham ,

El truco es encontrar el reglamento y establecer una fórmula general. Consulte la siguiente imagen:

1-2.PNG

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
Fowmy
Super User
Super User

@CongPham

El objetivo 872 debe ser para la línea no 3, por favor compruebe

________________________

¿He respondido a tu pregunta? Marque este post como una solución, esto ayudará a otros!.

Haga clic en el icono Thumbs-Up a la derecha si le gusta esta respuesta 🙂

YoutubeLinkedin

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Ahh, lo siento, lo estoy capturando con Excel. Por favor, vea la imagen completa:

formula2.jpg

@CongPham

Estoy recibiendo esto:

Fowmy_0-1596009748979.png

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors