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
vijaykumarj19
Employee
Employee

Dividir filas de las mismas columnas con fila en la misma columna

Descv1v2v3v4v5
a1022324323
b2232646643
c2143433454
d3232435456
Z200300400500600

Quiero dividir a,b,c,d filas por z para calcular el porcentaje

la producción debe ser

Descv1v2v3v4v5
aav1/zv1av2/zv2
bbv1/zv1bv2/zv2
ccv1/zv1cv2/zv2
ddv1/zv1dv2/zv2

como tengo múltiples col

3 REPLIES 3
mahoneypat
Employee
Employee

Aquí hay una manera de hacerlo. Simplemente resalte la primera columna y "Despivot Other Columns", cargue esa tabla y se verá como la siguiente.

vztable.png

A continuación, utilice esta expresión DAX en una columna calculada.

Dividir (Dividir)
DIVIDE (
vZTable[Valor],
CALCULAR (
MIN ( vZTable[Valor] ),
ALLEXCEPT ( vZTable, vZTable[vNumber] ),
vZTable[desc] á "Z"
)
)

Para la versión de medida, simplemente ajuste la primera expresión Divide con SELECTEDVALUE() y utilízla en un objeto visual de tabla con las columnas desc y vNumber.

Si esto funciona para usted, márquelo como solución. Los elogios también son apreciados. Por favor, avísame si no.

saludos

palmadita





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Anonymous
Not applicable

La última fila no es gran total es sólo una fila

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.