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.
Necesito ayuda, pude crear medidas que correctamente me dieron percentiles de mis datos de resumen, pero no sé cómo puedo asignar esto como "niveles" en un mapa de formas ya que no es una columna más bien es una nueva medida.
1. En primer lugar, agrupé (resumí) mis datos mediante Power Query. Aquí está el código M
Dejar
Source : Value.NativeQuery(PostgreSQL.Database("data-is.acphd.us:45432", "cape", [CreateNavigationProperties-false]), "SELECT * FROM inquiries_log_view_v2", null, [EnableFolding-true]),
"Tipo de cambio" - Table.TransformColumnTypes(Source,"Fecha/Hora de la Llamada", tipo datetime-),
"Eliminado otras columnas" - Table.SelectColumns(-"Changed Type","Entry ID", "Inquirer City of Residence"-),
"Filas agrupadas" - Table.Group(-"Removed Other Columns", "Inquirer City of Residence","Count", each Table.RowCount(_), Int64.Type-)
En
"Filas agrupadas"
Aquí está la mesa
Ciudad de Residencia | Contar |
Alameda | 380 |
Albany | 54 |
Ashland | 1 |
Berkeley | 163 |
Valle de Castro | 119 |
Cherryland | 1 |
No proporcionó | 3224 |
Dublín | 203 |
Emeryville | 57 |
Fairview | 1 |
Fremont | 535 |
Hayward | 515 |
Livermore | 391 |
2. Entonces, comencé a crear mis nuevas medidas para cada tertil (.75, .5 y .5)
3. A continuación, creé mis niveles basados en estos percentiles usando declaraciones if
Nivel: IF([_Count]<-[_25_Percentile],"Bajo",(IF(AND([_Count]<-[_50_Percentile],[_Count]>[_25_Percentile]),"Medium","Hgh")))
Cuando uso la característica de matriz todas estas medidas funcionan, pero no puedo averiguar cómo realizar la transición a un mapa basado en la ciudad/lugar donde puedo sombrear en función del nivel, ya que se trata de medidas dinámicas.
Aquí está mi matriz o tabla como un objeto visual de Power BI
Ciudad de Residencia | Contar | _25_Percentile | _5 | ||
Alameda | 380 | 28 | 123.5 | 382.75 | Hgh |
Albany | 54 | 28 | 123.5 | 382.75 | Medio |
Ashland | 1 | 28 | 123.5 | 382.75 | Bajo |
Berkeley | 163 | 28 | 123.5 | 382.75 | Hgh |
Valle de Castro | 119 | 28 | 123.5 | 382.75 | Medio |
Cherryland | 1 | 28 | 123.5 | 382.75 | Bajo |
No proporcionó | 3224 | 28 | 123.5 | 382.75 | Hgh |
Dublín | 203 | 28 | 123.5 | 382.75 | Hgh |
Emeryville | 57 | 28 | 123.5 | 382.75 | Medio |
Fairview | 1 | 28 | 123.5 | 382.75 | Bajo |
Fremont | 535 | 28 | 123.5 | 382.75 | Hgh |
Hayward | 515 | 28 | 123.5 | 382.75 | Hgh |
Livermore | 391 | 28 | 123.5 | 382.75 | Hgh |
Una suposición que tengo es que es necesario crear una tabla que muestre filas bajas, medias y altas en una tabla de resumen, pero como son dinámicas, no sé cómo hacerlo.
Hola @lisago1978
Para el mapa visual, con el mismo dat que proporcionó, cambié el tipo de ciudad a la ciudad como se muestra a continuación.
Ahora, puedo trazarlo en un mapa visual.
Hope it resolves your issue? Did I answer your question? Mark my post as a solution! Appreciate your Kudos, Press the thumbs up button!! Linkedin Profile |
RIght, sí gracias por responder. El problema es que no tengo una tabla en Power BI con esas columnas, la creé con Matrix Visual porque todas son medidas calculadas que cambiarán a medida que se incluyan nuevos datos a diario. Así que no estoy seguro de cómo asignar una medida que no está en una tabla o columna
@lisago1978, no muy claro. Pero usted tiene tamaño y descripciones emergentes dependiendo del mapa donde se puede poner una medida
Hola @lisago1978
En lugar de Hgh,Medio y Bajo, Usaría 3,2 y 1 respectivamente y lo usaría de forma descortesada.
Por lo tanto, mi fórmula será:
Tier = IF([_Count]<=[_25_Percentile],1,(IF(AND([_Count]<=[_50_Percentile],[_Count]>[_25_Percentile]),2,3)))
Hope it resolves your issue? Did I answer your question? Mark my post as a solution! Appreciate your Kudos, Press the thumbs up button!! Linkedin Profile |
Hi, Thanks fore replying (En Espanol!) I can definitely do this, not a hard fix, but I did this initially and am still not clear how to actually map this when it is a measure not a calculated column on a table,
Yes, the problem is that the table I created was using the Matrix Visual. I can't figure out how to create a table within power BI with dynamic tiers/percentiles. So I can use these formula for a Matrix visual but can't map it because a corresponding table in Power BI doesn't exist.
Sí, el problema es que la tabla que creé estaba usando Matrix Visual. No puedo averiguar cómo crear una tabla dentro de Power BI con niveles / percentiles dinámicos. Entonces puedo usar esta fórmula para un objeto visual de Matrix, pero no puedo asignarlo porque no existe una tabla correspondiente en Power BI.
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 |