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

Formato condicional horizontal en Matrix Visual

Hola

Necesito aplicar formato condicional en Matrix Visual en PowerBI (valor superior 3 en cada fila).

Intenté top n en dax pero no funcionó para mí.

Ex- debajo de la instantánea para refrence

Dhrutivyasa070_0-1676983933488.png

Gracias de antemano.

Dhruti

1 REPLY 1
Syndicate_Admin
Administrator
Administrator

Aquí hay una expresión de medida que muestra una forma de hacerlo. Simplemente use esta medida como el campo para el formato condicional de la medida en el objeto visual de la matriz. Tenga en cuenta que si tiene una columna ordenada por en su mes, también deberá incluirla en la medida.

ppm1_0-1676984755345.png

Top3MonthColor =
VAR thismonth =
    MIN ( 'Date'[Month] )
VAR top3Mos =
    TOPN ( 3, ALLSELECTED ( 'Date'[Month] ), [Total Qty], DESC )
RETURN
    IF ( thismonth IN top3Mos, "Light Green" )

Palmadita

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.