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
Anonymous
Not applicable

Un filtro para varias columnas de tiempo

Hola comunidad.

 

Estoy diseñando una visualización de un mapa y no he logrado averiguar como hacer esto:

Mi tabla de datos es algo parecido a esto:

XYOSC200920102011201220132014201520162017201820192020
-100.276555419.41125031111000000000
-100.258416819.50113851011100110000
-100.299055819.466749971000010000000
-100.262694219.502750451000000000100
-100.301861219.468527881001101000000
-100.326305919.492694482101000101100
-100.313660219.492731572110000010110
-100.259333419.496333382110011100000
-100.296639119.47552001001000000
-100.304623319.480246792001010100010
-100.316903519.487313913001010010000
-100.306161419.489090373001001001000
-100.309063719.487470153010110000100
-100.292068619.456438093001010000000
-100.308840419.475084283100101000100
-100.329111719.497109324000010001001
-100.208263319.446389994000000010000
-100.312694619.309518124000001000000
-100.189028519.440707124000001000100
-100.263265719.510817854000011000000

 

Tengo datos de diferentes proyectos que se han realizado en distintos años, pero algunos de ellos se han realizado en más de un año (p.e. el primer proyecto se realizó en el 2009, 2010 y 2011). Los valores de 0 representan que no se realizaron en dicho año y 1 que se realizaron. Quisiera tener en un solo filtro la posibilidad de seleccionar los diferentes años, cuando pongo más de un año en el campo de filtro los va agregando de tal manera que si pongo 2009 y 2010, me presenta una sola opción de filtrado que son los proyectos que se realizaron en 2009 y 2010 y lo que necesitaría es poder seleccionar los años de manera independiente.

 

Algo que hice y funcionó parcialmente fue sustituir los número "1" por el año, de tal manera que en la columna 2009, sustituí los "1" por "2009" e hice un filtro para cada año, sin embargo quisiera saber si existe alguna función o un mejor diseño de mi tabla para poder incluir todos los años en un solo filtro y de manera independiente.

Les dejo una imágen de lo que tengo hasta ahora.

 

https://drive.google.com/file/d/1BHBjvJPFwx2wOhDBhvrlO55mov9GjaU4/view?usp=sharing

 

Saludos

 

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , First of all, you have to unpivot this data. and then you can use the year as a slicer filter. Better to have a separate year table joined to this table.

 

https://radacad.com/pivot-and-unpivot-with-power-bi

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , First of all, you have to unpivot this data. and then you can use the year as a slicer filter. Better to have a separate year table joined to this table.

 

https://radacad.com/pivot-and-unpivot-with-power-bi

Anonymous
Not applicable

Gracias por la ayuda @amitchandak hice el unpivot de mis datos y funcionó perfecto.

Cada día me gusta más el PowerBi, no se como podía vivir sin él.

 

Saludos

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.