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
Syndicate_Admin
Administrator
Administrator

Icon FX -- ¿Reglas codificadas?

¿Es posible tener el formato condional (reglas) definido por un campo? Dependiendo del KPI , cada uno tiene un destino diferente , quiero aplicar la regla de formato condiontal contra el % definido por el destino del KPI

  • KPI 1 90% objetivo
  • KPI 2 80% objetivo

Parece que solo me permite codificar las reglas, aplicar una regla a todos

iconfx.PNG

3 REPLIES 3
Syndicate_Admin
Administrator
Administrator

No puedo hacer que muestre la flecha

¿Estoy haciendo algo estúpido?

Intentó

Flecha = Dónde Abajo = UNICHAR(11167)
Dónde Hacia arriba = UNICHAR(11165)
Dónde Lado = UNICHAR(11166)
DEVOLUCIÓN
Si(KPIData[%] < 0, Abajo, Si(KPIData[%] > 0.1, Hacia arriba, Lado))
Flecha =
var _change =KPIData[%]
return
SWITCH (
TRUE(),
_change > 0, UNICHAR(9650),
_change = 0, UNICHAR(9654),
_change < 0, UNICHAR(9660)
)
Capture.PNG
Syndicate_Admin
Administrator
Administrator

Gracias, echaremos un vistazo

Syndicate_Admin
Administrator
Administrator

@carlol , Puede medir el color y medir el icono, pero en ese caso necesita usar la medida del icono como valor diferente (columna) y usar el formato condicional en eso usando la opción de valor de campo

ejemplo

Flecha
Flecha =
var _change =[Ventas netas YTD]-[Ventas netas LYTD]
devolución
INTERRUPTOR (
VERDADERO(),
_change > 0, UNICHAR(9650),
_change = 0, UNICHAR(9654),
_change < 0, UNICHAR(9660)
)


Color de la flecha
Color de la flecha =
var _change =[Ventas netas YTD]-[Ventas netas LYTD]
devolución
INTERRUPTOR (
VERDADERO(),
_change > 0, "verde",
_change = 0, "azul",
_change < 0, "rojo"
)

UNICHAR - Herramienta para el formato de iconos personalizados: https://www.youtube.com/watch?v=veCtfP8IhbI&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=50

https://exceleratorbi.com.au/conditional-formatting-using-icons-in-power-bi/
https://community.powerbi.com/t5/Desktop/FORMAT-icon-set-for-use-in-a-data-card/td-p/811692

https://exceleratorbi.com.au/dax-unichar-function-power-bi/

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.