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.
Buenas tardes;
Necesito solucionar una sumatoria de productos
estos son los datos y todos son medidas calculadas
Region | Promedio total | Promedio region | Ponderado (total / region) | Categorizacion | Puntaje (ponderado x categorización) |
Antioquia | 3.505.944,08 | 430.601,67 | 0,12 | 3,69 | 0,45 |
Tolima | 3.505.944,08 | 190.087,75 | 0,05 | 5 | 0,27 |
Bogotá, D.C. | 3.505.944,08 | 788.099,17 | 0,22 | 1,02 | 0,23 |
Risaralda | 3.505.944,08 | 158.032,92 | 0,05 | 5 | 0,23 |
Cundinamarca | 3.505.944,08 | 197.230,33 | 0,06 | 3,95 | 0,22 |
Cesar | 3.505.944,08 | 144.687,00 | 0,04 | 5 | 0,21 |
Caldas | 3.505.944,08 | 138.294,17 | 0,04 | 5 | 0,2 |
Meta | 3.505.944,08 | 89.492,75 | 0,03 | 5 | 0,13 |
Atlántico | 3.505.944,08 | 365.567,25 | 0,1 | 1,09 | 0,11 |
Bolívar | 3.505.944,08 | 249.095,33 | 0,07 | 1,17 | 0,08 |
Santander | 3.505.944,08 | 209.462,50 | 0,06 | 1,15 | 0,07 |
Magdalena | 3.505.944,08 | 157.108,83 | 0,04 | 1,04 | 0,05 |
Valle del Cauca | 3.505.944,08 | 149.029,67 | 0,04 | 1,08 | 0,05 |
Córdoba | 3.505.944,08 | 121.319,17 | 0,03 | 1,18 | 0,04 |
Sucre | 3.505.944,08 | 82.517,25 | 0,02 | 1,43 | 0,03 |
La Guajira | 3.505.944,08 | 17.370,83 | 0 | 5 | 0,02 |
Quindio | 3.505.944,08 | 16.424,00 | 0 | 5 | 0,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.)
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.
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.
First you want to start with just the basic data.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
97 | |
85 | |
67 | |
59 |
User | Count |
---|---|
150 | |
120 | |
100 | |
87 | |
68 |