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.
Hola a todos
Tengo una mesa con dos columnas.
ciudad | beneficio |
Chicago | 60 |
Las Vegas | 80 |
Nueva York | 40 |
Los Ángeles | 90 |
Houston | 10 |
Beneficio total | 280 |
Necesito agregar una columna más "Porcentaje %". e inserte valores para "Beneficio/Beneficio total" en la nueva columna.
Cualquier ayuda será apreciada. Quiero hacer esto en Power Bi. gracias
Solved! Go to Solution.
Ahí @sdhn,
puedes hacerlo así:
Sum of Profit = SUM('Table'[Profit])
Percentage = DIVIDE([Sum of Profit],CALCULATE([Sum of Profit], ALL('Table')))
Con amables saludos desde la ciudad donde la leyenda del 'Pied Piper de Hamelin' está en casa
FrankAT (Orgulloso de ser un Datanaut)
Ahí @sdhn,
puedes hacerlo así:
Sum of Profit = SUM('Table'[Profit])
Percentage = DIVIDE([Sum of Profit],CALCULATE([Sum of Profit], ALL('Table')))
Con amables saludos desde la ciudad donde la leyenda del 'Pied Piper de Hamelin' está en casa
FrankAT (Orgulloso de ser un Datanaut)
El nombre real de la tabla es MailPackage y el nombre de columna es MAIL COUNT instaed of Profit.
Estoy recibiendo el siguiente mensaje.
Hice clic con el botón derecho en Tabla y elegí Nueva columna e inserto el siguiente código:
La sintaxis de 'sum' es incorrecta. (DAX(DIVIDE(MailPackage[MAIL COUNT]sum(MailPackage[MAIL COUNT])))).
Su ayuda se apreciará de nuevo. gracias
Añadí ", antes de suma y su trabajo PERO
Tenga en cuenta:
Tengo un total de recuento de correo (beneficio en el ejemplo anterior) en la última fila.
Es 280 en el ejemplo anterior.
Quiero obtener el resultado de porcentaje como recuentos de correo / recuento total de correo * 100 por cada fila en la columna de porcentaje recién pasado como se muestra a continuación:
60/280*100
80/280*100
40/280*100
90/280*100
10/280*100
gracias
Está bien. He eliminado el total del archivo de origen. Agradezco tu ayuda. Thx
Probar columna = DIVIDE( MailPackage[RECUENTO DE CORREO], SUM(MailPackage[RECUENTO DE CORREO] )
No se requiere DAX.
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 |
---|---|
2 | |
2 | |
2 | |
2 | |
1 |