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
unnijoy
Post Partisan
Post Partisan

Visuales basados en filtro

Tengo datos de attriton basados en el país. Tengo imágenes que muestran % de desgaste. Tengo un filtro desplegable basado en el país.

1) Ahora necesito que todos los objetos visuales estén en blanco si se seleccionan varios países. Los objetos visuales deben mostrar los números si solo se selecciona un país.

2) Podemos ver que si los datos no están disponibles los objetos visuales se mostrarán (en blanco). ¿Podemos hacerlo "-" o cualquier mensaje como "Datos no disponibles".

4 REPLIES 4
amitchandak
Super User
Super User

Prueba una medida como esta

nueva Medida

if(isfiltered(country[country]) && countx(allselected(country),country[country])-1,[measure],blank())

harshnathani
Community Champion
Community Champion

Hola @unnijoy ,

Por favor, encuentre .pbix adjunto.

Espero que esto sea lo que necesitas.

https://drive.google.com/file/d/1lZTc-acls1PKWWpqQ2OWYp2KcQm-wqkD/view?usp=sharing

saludos

Harsh Nathani

¿Respondí a tu pregunta? ¡Marca mi puesto como solución! Apreciar con un Kudos!!

@unnijoy ,

Para que todo el objeto visual esté en blanco.

Puede utilizar la siguiente medida.

Categoría1 ?
var __selval á HASONEVALUE('TABLE'[País])

devolución
__selval
IF(__selval,1,0)
IF (__selval,
INTERRUPTOR (
TRUE(),
[Attr%S] < [25PercentileNew] , "Top Quartile",
([Attr%S] > [25PercentileNew]) && ([Attr%S] < [50PercentileNew]) , "25th to 50th Quartile",
([Attr%S] > [50PercentileNew]) && ([Attr%S] < [75PercentileNew]) , "50a a 75a Cuartil",
"Cuarto de los fondos"
)
,
BLANCO()
)
1.jpg123.JPG
saludos
Harsh Nathani
¿Respondí a tu pregunta? ¡Marca mi puesto como solución! Apreciar con un Kudos!!
AiolosZhao
Memorable Member
Memorable Member

Hola @unnijoy ,

1. Creo que puede cambiar su segmentación de datos al modo de selección única para resolver el problema:

Visuals based on filter.PNG

2. Suponiendo que tenga una medida para calcular el % de desgaste llamado "% de desgaste" en su informe.

Puede intentar agregar una nueva medida como:

if(isblank(attrition %), "-",atrition %)

Por favor, inténtelo.

Aiolos Zhao





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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.