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

visualización de cambios de datos

Hola

Tengo un problema: quiero mostrar datos cambiados en una matriz.

Digamos que tengo una tabla:

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45Wck4sMVTSUfIsSc0F0YZKsToogkbYBI2BtAFM0AibdiMk7RgqjZFVGiNpN0AXNMImiKLdBJt2E2zaTbBpN8Wm3RSb301RtccCAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Category = _t, Item = _t, Value = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Category", type text}, {"Value", Int64.Type}})
in
    #"Changed Type"

Se ve de la siguiente manera:

kongyuancn_0-1634289449840.png

Luego configuro una matriz

kongyuancn_1-1634289533508.png

Ahora quiero etiquetar los datos que se cambian entre varias categorías. En esta imagen, quiero dejar que Item1 Cat4 muestre un color diferente porque los datos cambiaron de 1 a 0. Las categorías a comparar están controladas por una segmentación de datos.

Por favor, ayude a explicar cómo implementar esto.

gracias de antemano

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

Gracias por publicar sus datos como código M. Hace que sea más fácil ayudar. Aquí hay una manera de hacerlo. Cree una medida como esta (reemplace Elementos con el nombre de la tabla real) y utilícela como formato condicional de fondo.

mahoneypat_0-1634298034782.pngmahoneypat_1-1634298042211.png

ValueChange =
SI (
CALCULATE ( DISTINCTCOUNT ( Items[Value] ), ALLSELECTED ( Items[Category] ) > 1,
"Azul",
"Blanco"
)

Palmadita

Gracias Pat, ¿es posible etiquetar solo el artículo1 cat4 (no toda la fila)?

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.