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
UsePowerBI
Post Prodigy
Post Prodigy

¿Cómo crear funciones de suma para gráficos?

Hola

Tengo una mesa como:

Producto, Cliente, Precio, Ganancias, Unidades, etc.

Quiero calcular algunas sumas, por ejemplo:

1) suma de unidades por producto

2) suma de unidades por cliente

3) suma de beneficios por cliente

etcetera

¿Cómo puedo calcular estos y luego cómo puedo ponerlos en un gráfico como:

1) x eje - producto, eje y - suma de unidades por producto

2) x eje - cliente, eje y - suma de beneficios por cliente

¡Gracias!

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

HOLA @UsePowerBI,

Puede intentar utilizar las siguientes fórmulas de medida si cumplen con sus requisitos:

Measure 1 =
CALCULATE (
    SUM ( Table[Unit] ),
    ALLSELECTED ( Table ),
    VALUES ( Table[Product] )
)

Measure 2 =
CALCULATE (
    SUM ( Table[Unit] ),
    ALLSELECTED ( Table ),
    VALUES ( Table[Client] )
)

Measure 3 =
CALCULATE (
    SUM ( Table[Profit] ),
    ALLSELECTED ( Table ),
    VALUES ( Table[Client] )
)

Si arriba no ayuda, por favor, tenga algunos datos ficticios para probar:
Cómo obtener respuestas a su pregunta rápidamente

saludos

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

HOLA @UsePowerBI,

Puede intentar utilizar las siguientes fórmulas de medida si cumplen con sus requisitos:

Measure 1 =
CALCULATE (
    SUM ( Table[Unit] ),
    ALLSELECTED ( Table ),
    VALUES ( Table[Product] )
)

Measure 2 =
CALCULATE (
    SUM ( Table[Unit] ),
    ALLSELECTED ( Table ),
    VALUES ( Table[Client] )
)

Measure 3 =
CALCULATE (
    SUM ( Table[Profit] ),
    ALLSELECTED ( Table ),
    VALUES ( Table[Client] )
)

Si arriba no ayuda, por favor, tenga algunos datos ficticios para probar:
Cómo obtener respuestas a su pregunta rápidamente

saludos

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Tahreem24
Super User
Super User

@UsePowerBI ,
Crea diferentes medidas como:

suma de unidades por producto: CALCULATE(SUM(Table[Unit]),ALLEXCEPT(Table,Table[Product]))

suma de unidades por cliente: CALCULATE(SUM(Table[Unit]),ALLEXCEPT(Table,Table[Client]))

suma de los beneficios por cliente: CALCULATE(SUM(Table[Profit]),ALLEXCEPT(Table,Table[Client]))

Y ponerlos en las cartas.

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

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.