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

Tener una tarjeta de datos solo aparece cuando se ha aplicado un filtro a los datos

Hola a mí otra vez,

Fase 2. Tengo dos tarjetas de datos que muestran una relación. Una tarjeta de datos permanece sin filtrar en todo momento, por lo que cuando se cortan los datos, una tarjeta cambia y la otra muestra el valor general para la comparación.

Antes de segmentar los datos, tiene dos tarjetas de datos que muestran el mismo número. Cojo. Quiero ocultar la tarjeta de datos sin filtrar UNTIL alguien aplica filtros a mi informe.

Ir.

1 ACCEPTED SOLUTION

@heytherejem Eso sería más como:

Overall Ratio = 
  VAR __Calc = CALCULATE([Passed Closing SLA]/[Total Closed Encounters],ALL('Closed'))
RETURN
  IF(
    ISFILTERED('Table'[Column1]) || 
    ISFILTERED('Table'[Column2]) || 
    ISFILTERED('Table'[Column3]) || 
    ISFILTERED('Table'[Column4]) || 
    ISFILTERED('Table'[Column5]) || 
    ISFILTERED('Table'[Column6]),
    __Calc,
    BLANK()
  )

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

12 REPLIES 12
harshnathani
Community Champion
Community Champion

Hola @heytherejem ,

Tendrá que utilizar marcadores.

Vea si estos ayudan

https://medium.com/@arjunuttamsharma561/hiding-a-visual-from-report-dashboard-in-power-bi-9bc5bfc57b...

https://exceleratorbi.com.au/show-or-hide-a-power-bi-visual-based-on-selection/#:~:text=Format%20the....

saludos
Harsh Nathani
¿He respondido a tu pregunta? ¡Marca mi puesto como una solución! Apreciar con un Kudos!! (Haga clic en el botón Pulgares arriba)

S

Anonymous
Not applicable

@harshnathani Estoy bastante seguro de que puedo hacerlo sin usar marcadores, creo que es posible con una medida y el uso de transparencia, pero no estoy seguro de cómo.

Hola @heytherejem ,

Vea el segundo enlace.

https://exceleratorbi.com.au/show-or-hide-a-power-bi-visual-based-on-selection/#:~:text=Format%20the...

Esto no tiene un marcador.

saludos
Harsh Nathani
¿He respondido a tu pregunta? ¡Marca mi puesto como una solución! Apreciar con un Kudos!! (Haga clic en el botón Pulgares arriba)

Greg_Deckler
Super User
Super User

@heytherejem - ¿Puede utilizar ISFILTERED para comprobar y devolver BLANK?


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Probablemente @Greg_Deckler pero no estoy seguro de cómo adaptar la medida para ocultar la tarjeta de datos en la que se encuentra hasta que se filtran los datos.

Esta es la medida con la que me ayudaste ayer:

Relación total: CALCULATE([Passed Closing SLA]/[Total Closed Encounters],ALL('Closed'))
Traté de poner el ISFILTERED antes y después de la CALCULATE y se molesta.

@heytherejem - Tal vez:

Overall Ratio = 
  VAR __Calc = CALCULATE([Passed Closing SLA]/[Total Closed Encounters],ALL('Closed'))
RETURN
  IF(ISFILTERED('Table'[Column]),__Calc,BLANK())

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

@Greg_Deckler ok, pero la 'Tabla'[Columna] - No quiero especificar una columna, ya que sólo funcionará entonces si esa columna se utiliza como una segmentación de datos. Y tengo 6 rebanadoras, y quiero que la medida permanezca en blanco hasta que se aplique cualquiera de las segmentaciones. ¿Es posible?

@heytherejem Eso sería más como:

Overall Ratio = 
  VAR __Calc = CALCULATE([Passed Closing SLA]/[Total Closed Encounters],ALL('Closed'))
RETURN
  IF(
    ISFILTERED('Table'[Column1]) || 
    ISFILTERED('Table'[Column2]) || 
    ISFILTERED('Table'[Column3]) || 
    ISFILTERED('Table'[Column4]) || 
    ISFILTERED('Table'[Column5]) || 
    ISFILTERED('Table'[Column6]),
    __Calc,
    BLANK()
  )

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Gracias chicos, @Greg_Deckler se le ocurrió una solución que funciona perfectamente para mi informe. Muchas gracias, realmente lo agradezco.

¡Realmente estaría perdido sin ti!

@heytherejem
Creo que estás buscando algo como esto;
https://www.linkedin.com/pulse/show-different-visuals-based-condition-power-bi-alina-fisher/

¿Supongo que su DAX estaría usando la tabla "Cerrado"?

Interruptor de color de fuente ( Font Color Switch)
• IF(ISFILTERED('Closed')
"#FFFFFF00"
, "blanco")

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Anonymous
Not applicable

@AllisonKennedy ok puedo crear la medida, pero no sé dónde ponerla, lo intenté bajo el valor de campo del fondo condicional de la tarjeta de datos, pero no hace ninguna diferencia.

@heytherejem

Es posible que deba actualizar la medida para usar "negro" en lugar de "blanco" y es posible que deba cambiar el orden del código hexadecimal transparente y el color.

El fondo es blanco de todos modos de forma predeterminada por lo que no verá mucha diferencia aplicándolo al fondo. Tendrá que aplicarlo al color de la propiedad 'data label' como mínimo, y tal vez las propiedades 'category' y 'border' también dependiendo de cómo se vea su tarjeta de datos.

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

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.