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.
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:
Luego configuro una matriz
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
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.
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)?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
2 | |
2 | |
2 | |
2 | |
1 |