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

Cálculo por categoría

Hola a todos,

Tengo una mesa

necesidad de añadir una columna calculada el cálculo es

Coste pagado: suma del coste planificado + suma de la subestación/recuento del circuito

SubestaciónNombre del circuitoCoste planificado
ArdmoreArdmore 24$14,793
ArdmoreArdmore 24$32,603
ArdmoreArdmore 24$40,000
ArdmoreArdmore 24$118,000
ArdmoreArdmore 24$383,180
ArdmoreArdmore 24$1,064,590
BellcowBellcow 21$19,279
BellcowBellcow 21$26,091
BellcowBellcow 21$35,000
BellcowBellcow 21$190,000
BellcowBellcow 21$463,180
BellcowBellcow 21$848,958
BellcowBellcow 50$12,476
BellcowBellcow 50$25,000
BellcowBellcow 50$27,383
BellcowBellcow 50$124,500
BellcowBellcow 50$298,180
BellcowBellcow 50$902,740
BellcowSubestación$1,919
BellcowSubestación$8,392
BellcowSubestación$15,000
BellcowSubestación$50,000
BellcowSubestación$84,330
BellcowSubestación$200,000

para Ardmore no hay Subestación por lo que el costo pagado - suma del costo planificado que es $1,653,166

pero para Bellcow tenemos 2 Circuito y subestación

por lo que el cálculo del costo pagado es la suma del coste planificado + suma de la subestación/recuento del circuito

Tenga en cuenta que el cálculo de costo pagado para la subestación será solo la suma del costo planificado

SubestaciónNombre del circuitoCoste planificadoCosto pagado
ArdmoreArdmore 24$14,793$1,653,166
ArdmoreArdmore 24$32,603$1,653,166
ArdmoreArdmore 24$40,000$1,653,166
ArdmoreArdmore 24$118,000$1,653,166
ArdmoreArdmore 24$383,180$1,653,166
ArdmoreArdmore 24$1,064,590$1,653,166
BellcowBellcow 21$19,2791762328.5
BellcowBellcow 21$26,0911762328.5
BellcowBellcow 21$35,0001762328.5
BellcowBellcow 21$190,0001762328.5
BellcowBellcow 21$463,1801762328.5
BellcowBellcow 21$848,9581762328.5
BellcowBellcow 50$12,4761755525.5
BellcowBellcow 50$25,0001755525.5
BellcowBellcow 50$27,3831755525.5
BellcowBellcow 50$124,5001755525.5
BellcowBellcow 50$298,1801755525.5
BellcowBellcow 50$902,7401755525.5
BellcowSubestación$1,919$359,641
BellcowSubestación$8,392$359,641
BellcowSubestación$15,000$359,641
BellcowSubestación$50,000$359,641
BellcowSubestación$84,330$359,641
BellcowSubestación$200,000$359,641

5 REPLIES 5
v-juanli-msft
Community Support
Community Support

Hola @rasala583

Crea una columna

Column =
IF (
    'Table'[Circuit Name] = "Substation",
    CALCULATE (
        SUM ( 'Table'[Planned Cost] ),
        FILTER (
            'Table',
            'Table'[Substation] = EARLIER ( 'Table'[Substation] )
                && 'Table'[Circuit Name] = "Substation"
        )
    )
        / CALCULATE (
            DISTINCTCOUNT ( 'Table'[Circuit Name] ),
            FILTER (
                'Table',
                'Table'[Substation] = EARLIER ( 'Table'[Substation] )
                    && 'Table'[Circuit Name] = "Substation"
            )
        ),
    CALCULATE (
        SUM ( 'Table'[Planned Cost] ),
        FILTER ( 'Table', 'Table'[Substation] = EARLIER ( 'Table'[Substation] ) )
    )
        / CALCULATE (
            DISTINCTCOUNT ( 'Table'[Circuit Name] ),
            FILTER ( 'Table', 'Table'[Substation] = EARLIER ( 'Table'[Substation] ) )
        )
)

Capture1.JPG

Saludos
Maggie
Equipo de apoyo a la comunidad _ Maggie Li
Si este post ayuda, entonces considera Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

Anonymous
Not applicable

Hola

el cálculo se equivocó el valor del costo pagado será

SubestaciónNombre del circuitoNúmero de circuitoCoste planificadoCosto pagado
BellcowBellcow 50710450$ 124,500$1,570,099.41
BellcowBellcow 50710450$ 902,740$1,570,099.41
BellcowBellcow 50710450$ 12,476$1,570,099.41
BellcowBellcow 50710450$ 27,383$1,570,099.41
BellcowBellcow 50710450$ 298,180$1,570,099.41
BellcowBellcow 50710450$ 25,000$1,570,099.41
BellcowBellcow 21710421$ 190,000$1,762,328.16
BellcowBellcow 21710421$ 848,958$1,762,328.16
BellcowBellcow 21710421$ 19,279$1,762,328.16
BellcowBellcow 21710421$ 26,091$1,762,328.16
BellcowBellcow 21710421$ 463,180$1,762,328.16
BellcowBellcow 21710421$ 35,000$1,762,328.16
BellcowSubestación $ 84,330$359,640.80
BellcowSubestación $ 15,000$359,640.80
BellcowSubestación $ 50,000$359,640.80
BellcowSubestación $ 200.000$359,640.80
BellcowSubestación $ 1,919$359,640.80
BellcowSubestación $ 8,392$359,640.80

Hola @rasala583

Capture11.JPG

final =
VAR t1 =
    CALCULATE (
        SUM ( 'Table 6'[Planned Cost] ),
        FILTER (
            'Table 6',
            'Table 6'[Substation] = EARLIER ( 'Table 6'[Substation] )
                && 'Table 6'[Circuit Name] = EARLIER ( 'Table 6'[Circuit Name] )
        )
    )
VAR c1 =
    CALCULATE (
        DISTINCTCOUNT ( 'Table 6'[Circuit Name] ),
        FILTER (
            'Table 6',
            'Table 6'[Substation] = EARLIER ( 'Table 6'[Substation] )
                && 'Table 6'[Circuit Name] <> "Substation"
        )
    )
VAR t2 =
    CALCULATE (
        SUM ( 'Table 6'[Planned Cost] ),
        FILTER (
            'Table 6',
            'Table 6'[Substation] = EARLIER ( 'Table 6'[Substation] )
                && 'Table 6'[Circuit Name] = "Substation"
        )
    )
RETURN
    t1 + t2 / c1

Saludos
Maggie
Equipo de apoyo a la comunidad _ Maggie Li
Si este post ayuda, entonces considera Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

Ashish_Mathur
Super User
Super User

Hola

¿Cómo se caldrió la cifra de 1762328.5? Muéstralo claramente.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hola

el cálculo

suma de Bellcow 50o $1,390,279 (124,500+902,740+12,476+27,383+298,180 +25,000)

suma de Bellcow 21 a $1,582,508(190,000+848,958+19,279+26,091+463,180+35,000)

suma de la Subestación: $359,641(84,330+15,000+50,000+200,000+1,919+8,392

ahora el Cálculo Pagado - suma de Bellcow 50+(suma de Subestación/2) Tenga en cuenta que el 2 es el recuento de Circuito para Bellcow será diferente para cada Circuito

suma de Bellcow 21+(suma de Subestación/2)

Bellcow 50710450$ 1,570,099.41
Bellcow 21710421$1,762,328.16
Subestación $359,641

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.