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
Ianc33
Frequent Visitor

Eliminar filas que coincidan con la salida de segmentación de datos

Hola a todos,

Tengo una tabla que es similar a la siguiente.

NOMBRE, DÍA

name1,tag1

name1,tag2

name2,tag1

name2,tag2

name3,tag1

name3,tag2

name4,tag1

Que está en una tabla visual.

Si tuviera que dividir el objeto visual en tag2, quiero otro objeto visual de tabla que contenga solo name4 ya que no tiene tag2.

¿Es posible?

Gracias de antemano por su ayuda.

1 ACCEPTED SOLUTION
v-kelly-msft
Community Support
Community Support

Hola @Ianc33 ,

Duplicar la tabla;

A continuación, cree una medida como se indica a continuación:

Measure = 
var _namesexclude=CALCULATETABLE(VALUES('Table 2'[NAME]),FILTER(ALL('Table 2'),'Table 2'[TAG]=SELECTEDVALUE('Table'[TAG])))
var _nameremain=EXCEPT(DISTINCT('Table 2'[NAME]),_namesexclude)
Return
IF(ISFILTERED('Table'[TAG])=FALSE(),MAX('Table 2'[NAME]),IF(MAX('Table 2'[NAME]) in _nameremain,MAX('Table 2'[NAME]),BLANK()))

Y verás:

Annotation 2020-08-10 164406.pngAnnotation 2020-08-10 164432.png

Para el archivo .pbix relacionado, pls ver adjunto.


Saludos
Kelly
¿He respondido a tu pregunta? ¡Marca mi puesto como una solución!

View solution in original post

4 REPLIES 4
v-kelly-msft
Community Support
Community Support

Hola @Ianc33 ,

Duplicar la tabla;

A continuación, cree una medida como se indica a continuación:

Measure = 
var _namesexclude=CALCULATETABLE(VALUES('Table 2'[NAME]),FILTER(ALL('Table 2'),'Table 2'[TAG]=SELECTEDVALUE('Table'[TAG])))
var _nameremain=EXCEPT(DISTINCT('Table 2'[NAME]),_namesexclude)
Return
IF(ISFILTERED('Table'[TAG])=FALSE(),MAX('Table 2'[NAME]),IF(MAX('Table 2'[NAME]) in _nameremain,MAX('Table 2'[NAME]),BLANK()))

Y verás:

Annotation 2020-08-10 164406.pngAnnotation 2020-08-10 164432.png

Para el archivo .pbix relacionado, pls ver adjunto.


Saludos
Kelly
¿He respondido a tu pregunta? ¡Marca mi puesto como una solución!
amitchandak
Super User
Super User

@Ianc33 ,

Usted puede conseguir una mesa como

table (all(Table1[Tag]), allselected(Table1[Tag]))

o puede obtener medida y agregarlo visual

measure - countrows(Table), filter(all(table), not(Table1[Tag] in values(Table1[Tag])))

vanessafvg
Super User
Super User

a menos que no entienda que puede filtrar el objeto visual de la tabla con el filtro en el panel derecho para ese objeto visual específico y también establecer sus interacciones de edición para ignorar las segmentaciones en ese objeto visual.

https://docs.microsoft.com/en-us/power-bi/create-reports/service-reports-visual-interactions





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Hola Vanessafvg,

Gracias por tomarse el tiempo para responder.

Lo que estoy buscando es,

1 objeto visual de tabla que muestra los datos coincidentes y un segundo que muestra los datos no coincidentes de la segmentación de datos

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.