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

Seleccione una columna de valor para mostrar con la ayuda de una segmentación de datos

Hola

Si tengo este tipo de tabla (vea la captura de pantalla a continuación) es posible elegir qué valor usar (la columna "value1" o la columna "value2") en un solo esquema, usando una segmentaciónde datos ?

ress.PNG

Ejemplo del esquema que quiero usar

schema.PNG

Traté de hacerlo, con la ayuda de una nueva columna "BankCode" pero no estoy encontrando ninguna solución...

Espero que me hayas entendido,

Gracias, Thomas

4 REPLIES 4
v-yingjl
Community Support
Community Support

Hola @Shifu ,

Si lo conseguí correctamente, puedes probar los siguientes setps:

  1. Crear una nueva tabla que tiene una nueva columna 'Valor', contiene 'value1' y 'value2', sólo tiene que introducir datos manualmentenew table.png
  2. Crea un meaure con esta fórmula:

Value = 
IF (
    SELECTEDVALUE ( Test[Value] ) = "value1",
    SUM ( 'Table'[Value1] ),
    IF ( SELECTEDVALUE ( Test[Value] ) = "value2", SUM ( 'Table'[Value2] ) )
)
​

  • Ponga esta medida en el campo Valores del gráfico de columnas, cree una segmentación de datos y coloque la columna 'Valor' en ella
  • El resultado puede ser el siguiente:value1.pngvalue2.png

Se adjunta un archivo de ejemplo que espera ayudarle, compruebe y pruébelo: Seleccione una columna de valor para mostrar con la ayuda de un slicer.pbix

Por cierto, por qué el valor1 en su imagen es el mismo valor cada año... no estoy seguro

Mejores looks,
Yingjie Li

Si este post ayuda, por favor considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

Anonymous
Not applicable

Gracias por su ayuda, Nunca lo habría encontrado yo mismo !

Funciona perfectamente, eso es tan genial !

Gracias de nuevo, Kind Regards,

Thomas

amitchandak
Super User
Super User

@Shifu , consulte este tema, cómo se ha utilizado la segmentación de datos para la columna o medida de oportunidad

https://community.powerbi.com/t5/Desktop/Slicer-MTD-QTD-YTD-to-filter-dates-using-the-slicer/td-p/50...

@Shifu no está muy claro lo que realmente está buscando, Lea este post para obtener su respuesta rápidamente.

https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

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.