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
Juanbetancur
Helper I
Helper I

Sumatoria de producto

Buenas tardes;

 

Necesito solucionar una sumatoria de productos

estos son los datos y todos son medidas calculadas

 

RegionPromedio totalPromedio regionPonderado (total / region)CategorizacionPuntaje (ponderado x categorización)
Antioquia3.505.944,08430.601,670,123,690,45
Tolima3.505.944,08190.087,750,0550,27
Bogotá, D.C.3.505.944,08788.099,170,221,020,23
Risaralda3.505.944,08158.032,920,0550,23
Cundinamarca3.505.944,08197.230,330,063,950,22
Cesar3.505.944,08144.687,000,0450,21
Caldas3.505.944,08138.294,170,0450,2
Meta3.505.944,0889.492,750,0350,13
Atlántico3.505.944,08365.567,250,11,090,11
Bolívar3.505.944,08249.095,330,071,170,08
Santander3.505.944,08209.462,500,061,150,07
Magdalena3.505.944,08157.108,830,041,040,05
Valle del Cauca3.505.944,08149.029,670,041,080,05
Córdoba3.505.944,08121.319,170,031,180,04
Sucre3.505.944,0882.517,250,021,430,03
La Guajira3.505.944,0817.370,83050,02
Quindio3.505.944,0816.424,00050,02

 

Lo que intento es sumatoria (ponderado x categorización)

Intente con SUM pero obvio no se puede realizar una suma de una expresion.

Intente tambien crear una tabla como la que presente arriba pero me sale un error (La expresion DAXpara la tabla calculada genera un tipo de datos Variante para la columna "Categorización". Modifique el cálculo de manera que la columna tengo un tipo de datos coherente.)

 

4 REPLIES 4
v-yanjiang-msft
Community Support
Community Support

Hi @Juanbetancur ,

Is your problem solved?? If so, Would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirement will find the solution quickly and benefit here. Thank you.

Best Regards,
Community Support Team _ kalyj

Hola:

 

Las ideas brindadas no cumplieron con la solicitud, pero utilicé una de las ideas para mejorar mi proyecto.

 

v-yanjiang-msft
Community Support
Community Support

Hi @Juanbetancur ,

Why not use SUMX function which parameter does not need to be column. Like this:

SUMX( 'Table', [ponderado] * [categorización] )

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

lbendlin
Super User
Super User

First you want to start with just the basic data.

 

lbendlin_0-1659143583603.png

 

Then you can use the DAX aggregation functions to construct the other fields, either as columns or as measures  (for example when you only want to look at a subset of regions).  You can also use implicit measures like "show value as percentage of Grand Total)

 

See attached.

 

 

 

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.