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
Carlsberg987
New Member

Problema para crear medidas en una tabla de medidas

Hola
Tengo una tabla de medidas separada configurada y estoy tratando de crear medidas allí para usar en mis objetos visuales. Por alguna razón no puedo crear una medida porcentual, que da la parte del cliente de las ventas totales. ¿Qué estoy haciendo mal aquí? Aparentemente el resultado no es una sola cifra.
Ventas totales por cliente (obras):
CustomerShareOfSales - SUMX(
'SalesInvoices',
'SalesInvoices'[TotalSum]
)


Porcentaje total de ventas por cliente (no funciona):
CustomerShareOfSales-% ?
Divide([CustomerShareOfSales],ALL('SalesInvoices'[TotalSum]))
3 REPLIES 3
az38
Community Champion
Community Champion

@Carlsberg987

ALL() es una función de filtro, no devuelve ningún número para dividir

Tratar

Divide(
[CustomerShareOfSales],

CALCULATE(SUM(SalesInvoices[TotalSum]), ALL(SalesInvoices) )
)

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

¡Gracias por esto! ¿Entiendo el CALCULATE en esto correctamente: Crea un nuevo contexto de filtro en el que la SUM se evalúa y, por lo tanto, es obligatoria?

@Carlsberg987

well,CALCULATE() en este caso le permite evaluar el contexto ALL() como filtro


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

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.