This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Necesito obtener las ventas totales (ACV de ventas totales) de la tabla de oportunidades para cuentas en la tabla Cuentas utilizando dos relaciones con la misma tabla sin duplicar sumas. El ID de cuenta puede ser el de la columna ID de cuenta de la tabla de oportunidades, el de CPA de la tabla de oportunidades o ambos. Quiero obtener las ventas totales sin sumar las ventas dos veces si están en ambos campos.
Las dos relaciones son Account(AccountId) > Opportunity(AcctId) &
Cuenta(AcctId) > Oportunidad(CPA_Acct_Id). He intentado usar la fórmula de Gregs de una pregunta anterior publicada sin suerte.
Measure = SUMX(SUMMARIZE(DistinctSum,[KEY],"Payment",AVERAGE(DistinctSum[PAYMENT])),[Payment])
Solved! Go to Solution.
Pude resolver esto. La medida de Greg terminó funcionando. Solo tenía que conseguir mi mesa en el formato adecuado.
Medida = SUMX(
RESUMIR(
FILTER('2024 Tabla de cálculo de CPA del cliente final',
'2024 Tabla de cálculo de CPA del cliente final' [año ACV] = 2024),
'2024 Tabla de cálculo de CPA del cliente final' [ Opp Id],
"ACV", AVERAGE ('2024 End Client CPA Calc Table' [ACV])),
[ACV])
Cuadro sinóptico
VAR endclient24 =
RESUMIR(
FILTRO(
FILTRO(
Oportunidad
Opportunity[AccountId] <> [en blanco]),
Oportunidad[Close_Year__c] = 2024
),
Oportunidad[ Opp Id],
Oportunidad[AccountId],
"ACV Yr", Oportunidad[Opp Cerrar Año],
"ACV", SUM(Oportunidad[Ventas totales ACV])
)
VAR cpaacct24 =
RESUMIR(
FILTRO(
FILTRO(
Oportunidad
Oportunidad[CPA_Contact_Account__c] <> [en blanco]),
Oportunidad[Close_Year__c] = 2024
),
Oportunidad[ Opp Id],
Oportunidad[CPA_Contact_Account__c],
"ACV Yr", Oportunidad[Opp Cerrar Año],
"ACV", SUM(Oportunidad[Ventas totales ACV])
)
Cliente final VAR =
RESUMIR(
FILTRO(
FILTRO(
FILTRO(
Oportunidad
Opportunity[AccountId] <> [en blanco] ),
Oportunidad[Close_Year__c] = 2023 ),
Oportunidad[Record_Type_Name__c (grupos)] <> "ERC"
),
Oportunidad[ Opp Id],
Oportunidad[AccountId],
"ACV Yr", Oportunidad[Opp Cerrar Año],
"ACV", SUM(Oportunidad[Ventas totales ACV])
)
Ficha del VAR =
RESUMIR(
FILTRO(
FILTRO(
FILTRO(
Oportunidad
Opportunity[AccountId] <> [en blanco] ),
Oportunidad[Close_Year__c] = 2023 ),
Oportunidad[Record_Type_Name__c (grupos)] <> "ERC"
),
Oportunidad[ Opp Id],
Oportunidad[CPA_Contact_Account__c],
"ACV Yr", Oportunidad[Opp Cerrar Año],
"ACV", SUM(Oportunidad[Ventas totales ACV])
)
DEVOLUCIÓN
UNIÓN(
cliente final24,
cpaacct24,
cliente final,
CPAACCT)
Pude resolver esto. La medida de Greg terminó funcionando. Solo tenía que conseguir mi mesa en el formato adecuado.
Medida = SUMX(
RESUMIR(
FILTER('2024 Tabla de cálculo de CPA del cliente final',
'2024 Tabla de cálculo de CPA del cliente final' [año ACV] = 2024),
'2024 Tabla de cálculo de CPA del cliente final' [ Opp Id],
"ACV", AVERAGE ('2024 End Client CPA Calc Table' [ACV])),
[ACV])
Cuadro sinóptico
VAR endclient24 =
RESUMIR(
FILTRO(
FILTRO(
Oportunidad
Opportunity[AccountId] <> [en blanco]),
Oportunidad[Close_Year__c] = 2024
),
Oportunidad[ Opp Id],
Oportunidad[AccountId],
"ACV Yr", Oportunidad[Opp Cerrar Año],
"ACV", SUM(Oportunidad[Ventas totales ACV])
)
VAR cpaacct24 =
RESUMIR(
FILTRO(
FILTRO(
Oportunidad
Oportunidad[CPA_Contact_Account__c] <> [en blanco]),
Oportunidad[Close_Year__c] = 2024
),
Oportunidad[ Opp Id],
Oportunidad[CPA_Contact_Account__c],
"ACV Yr", Oportunidad[Opp Cerrar Año],
"ACV", SUM(Oportunidad[Ventas totales ACV])
)
Cliente final VAR =
RESUMIR(
FILTRO(
FILTRO(
FILTRO(
Oportunidad
Opportunity[AccountId] <> [en blanco] ),
Oportunidad[Close_Year__c] = 2023 ),
Oportunidad[Record_Type_Name__c (grupos)] <> "ERC"
),
Oportunidad[ Opp Id],
Oportunidad[AccountId],
"ACV Yr", Oportunidad[Opp Cerrar Año],
"ACV", SUM(Oportunidad[Ventas totales ACV])
)
Ficha del VAR =
RESUMIR(
FILTRO(
FILTRO(
FILTRO(
Oportunidad
Opportunity[AccountId] <> [en blanco] ),
Oportunidad[Close_Year__c] = 2023 ),
Oportunidad[Record_Type_Name__c (grupos)] <> "ERC"
),
Oportunidad[ Opp Id],
Oportunidad[CPA_Contact_Account__c],
"ACV Yr", Oportunidad[Opp Cerrar Año],
"ACV", SUM(Oportunidad[Ventas totales ACV])
)
DEVOLUCIÓN
UNIÓN(
cliente final24,
cpaacct24,
cliente final,
CPAACCT)
Hola @RevOps608 ,
Por favor, pruebe el siguiente código:-
Total Sales ACV =
CALCULATE(
SUM(Opportunity[SalesAmount]),
UNION(
FILTER(Opportunity, Opportunity[AcctId] IN VALUES(Accounts[AccountId])),
FILTER(Opportunity, Opportunity[CPA_Acct_Id] IN VALUES(Accounts[AcctId]))
)
)
Gracias por responder. Su medida se encuentra a la derecha en los valores 'Cliente final - Ventas totales de CPA Cuenta'. Solo devuelve las ventas desde el campo "ID de cuenta". La medida de la izquierda en la matriz, ('Ventas totales (ACV)' es una medida que suma las ventas del campo 'Id. de cuenta' en la tabla de oportunidades. La medida intermedia '2024 Opp CPA Acct ACV' es la suma de las ventas de 'CPA Acct Id'.
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.