Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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 2020 | Código de ventas |
$45 | Publicidad |
$300 | Ingresos por productos |
$5 | Tarifas de servicio |
$65 | Publicidad |
$35 | Otro |
% de ingresos del producto ($300) / Ingresos totales ($450) - 66,7%
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))
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.
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
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingThis is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.