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
i820017
Resolver II
Resolver II

Orden descendente

Hola a todos,

Estoy tratando de poner el orden de las columnas en uno de mis informes en orden descendente por YearMonth en una matriz. En este momento, está en orden ascendente. He intentado usar 'Ordenar por columna', pero eso solo ordena los datos en el componente de tabla de Power BI, no en la matriz de la interfaz de usuario. ¿Alguien sabe cómo arreglar esto? Parece bastante básico, pero me tiene perplejo 😁

Los títulos de columna son, en orden, 20202, 20203, 202004, 202005, 202006, 202007, 202008, 202009, 202010.

Quiero que los títulos de columna se inviertan para que 2020010 sea el primero, luego 202009, y así sucesivamente.

Gracias

Que

1 ACCEPTED SOLUTION

I just got it to work. I had to pull from a new table, join the table, and then it worked...thanks for your help

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

Por el momento, Power BI no tiene la capacidad de ordenar el orden de las columnas de una matriz; sólo se puede ordenar el orden de filas.

Una tarea sencilla es agregar una columna personalizada en la vista de datos que invierta todos los valores y ordene por esa columna.

Por ejemplo, si actualmente estoy usando [MMM YYY] en mi matriz y clasifiqué por mes de serie....

hunterfeldman_0-1601500059370.png

... entonces agregaría una nueva columna con la siguiente fórmula.

hunterfeldman_1-1601500181349.png

Esto me da una nueva columna que luego usaría para la opción 'Ordenar por columna'

hunterfeldman_2-1601500236237.png

Lo que hace que mi matriz pase de esto:

hunterfeldman_0-1601500576538.png

A esto:

hunterfeldman_1-1601500615479.png



Cambié el signo de la columna YearMonth, luego ordené por esa nueva columna, y todavía no funcionó. Lo entiendo.

i820017_0-1602021153078.png

FrankAT
Community Champion
Community Champion

Hola @i820017

utilizar una columna para ordenar la columna YearMonth (ver figura). [1] y [2] son rebanadoras ordenadas ascendentes y descendentes.

30-09-_2020_23-09-58.png

Con saludos amables desde la ciudad donde la leyenda del 'Pied Piper de Hamelin' está en casa
FrankAT (Orgulloso de ser un Datanaut)

Todavía no funciona. Esto es lo que estoy recibiendo.

i820017_0-1602020963510.png

hola @i820017

Para su caso, debe usar ordenar por columna para obtenerlo:

https://radacad.com/sort-by-column-in-power-bi

simplemente cree una columna como se muestra a continuación:

DescYearMonth = -(YEAR('Date'[Date])*100+MONTH('Date'[Date]))

a continuación, establezca la ordenación por columna como se muestra a continuación:

9.JPG

Resultado:

10.JPG

y aquí está el archivo pbix de muestra, por favor pruébelo.

Regads,

Lin

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

Hey Lin,

It's still not working. This is a double-layered report as seen below. Do you think that the fact that the report is double-layered is causing the problem? Moreover, do you have another visualization like a matrix that I can download that will alleviate this issue?

 

i820017_0-1602172686636.png

 

Thanks

Dan

I just got it to work. I had to pull from a new table, join the table, and then it worked...thanks for your help

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.