cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Pyrofenix
Regular Visitor

Mostrar una tarjeta con % del total

Estoy tratando de mostrar el % de las ventas totales que se realizan Ingresos del producto, pero siguen recibiendo un error o valor incorrecto cuando lo intento.

Ventas 2020Código de ventas
$45Publicidad
$300Ingresos por productos
$5Tarifas de servicio
$65Publicidad
$35Otro

% de ingresos del producto ($300) / Ingresos totales ($450) - 66,7%

2 REPLIES 2
v-juanli-msft
Community Support
Community Support

Hola @Pyrofenix

Crear una medida

Measure = CALCULATE(SUM(Sheet8[2020 Sales]),FILTER(Sheet8,Sheet8[Sales Code]="Product Revenue"))/CALCULATE(SUM(Sheet8[2020 Sales]),ALLSELECTED(Sheet8))

Capture15.JPG

Saludos
Maggie
Equipo de Apoyo Comunitario _ Maggie Li
Si este post ayuda, por favor considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

edhans
Super User
Super User

Quieres algo en la línea de esto. El ALL() en el denominador le dice que ignore todos los filtros y obtenga todo el total.

% of Total =
VAR CurrentSales =
    SUM( Table[Sales] )
VAR TotalSales =
    SUMX(
        ALL( Table ),
        Table[Sales]
    )
VAR Result =
    DIVIDE(
        CurrentSales,
        TotalSales,
        0
    )
RETURN
    Result



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.