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 mundo
Tengo una enorme lista de proveedores que cada uno de ellos tiene una prioridad específica.
Quiero en el caso del mismo proveedor - prioridad diferente para resaltar el nombre del proveedor.
Mi idea era algo así como
Max measure =
CALCULATE (
MAX ( ' Suppliers'[Priority] ),
ALLEXCEPT ( 'Suppliers','Suppliers'[Supplier Name] )
)
Min measure =
CALCULATE (
Min ( 'Suppliers'[Priority] ),
ALLEXCEPT ( 'Suppliers','Suppliers'[Supplier Name] )
)
y luego comparar la medida mínima y máxima, pero dice que hay demasiados datos y la visualización ha excedido los recursos disponibles. ¿Alguna idea de esto? Le adjunto una tabla de muestra de un solo proveedor.
Nombre de Supl | Cod1 | Código 2 | Fecha | Tipo | Prioridad |
Ger | 216 | 1000 | 12/31/2011 0:00 | PROVEEDOR DE RAND | 98 |
Ger | 217 | 1000 | 12/31/2011 0:00 | PROVEEDOR DE RAND | 98 |
Ger | 218 | 1000 | 12/31/2011 0:00 | PROVEEDOR DE RAND | 99 |
Ger | 219 | 1000 | 12/31/2011 0:00 | PROVEEDOR DE RAND | 99 |
Ger | 220 | 1000 | 12/31/2011 0:00 | PROVEEDOR DE RAND | 99 |
Ger | 221 | 1000 | 12/31/2011 0:00 | PROVEEDOR DE RAND | 99 |
Ger | 222 | 1000 | 12/31/2011 0:00 | PROVEEDOR DE RAND | 99 |
Ger | 223 | 1000 | 12/31/2011 0:00 | PROVEEDOR DE RAND | 99 |
Ger | 224 | 1000 | 12/31/2011 0:00 | PROVEEDOR DE RAND | 99 |
Ger | 225 | 1000 | 12/31/2011 0:00 | PROVEEDOR DE RAND | 99 |
Ger | 226 | 1000 | 12/31/2011 0:00 | PROVEEDOR DE RAND | 99 |
Ger | 227 | 1000 | 12/31/2011 0:00 | PROVEEDOR DE RAND | 99 |
Ger | 228 | 1000 | 12/31/2011 0:00 | PROVEEDOR DE RAND | 99 |
Ger | 229 | 1000 | 12/31/2011 0:00 | PROVEEDOR DE RAND | 99 |
Ger | 230 | 1000 | 12/31/2011 0:00 | PROVEEDOR DE RAND | 99 |
Gracias de antemano mundo.!
Solved! Go to Solution.
OK, así que tienes el formato de salida que quieres, es sólo que las medidas están sobrecargando el límite de recursos, ¿verdad?
Tal vez intente agregar el Min/Max en la tabla en Power Query de antemano, algo como esto:
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("pdK7CoAwDIXhV5HOgknqpXUTFBFESsWp+P6v4WWRjvEsCYR825+SmadoSiPc3pOJ6FlSWa6EmAvq30sctrHYjxDW5X33zpzlZzvAOpX1mfX/rRBgGbACWAvYGrANYHVd5VbXVW6BrgToyqq7Oi8=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [#"Supl Name" = _t, Cod1 = _t, #"Code 2" = _t, Date = _t, #"Type " = _t, Priority = _t]),
groupSupplier = Table.Group(Source, {"Supl Name"}, {{"data", each _, type table [Supl Name=text, Cod1=number, Code 2=number, Date=text, #"Type "=text, Priority=number]}}),
addMinPrio = Table.AddColumn(groupSupplier, "minPriority", each Table.Min([data], "Priority")),
addMaxPrio = Table.AddColumn(addMinPrio, "maxPriority", each Table.Max([data], "Priority")),
expandMinPrio = Table.ExpandRecordColumn(addMaxPrio, "minPriority", {"Priority"}, {"minPriority"}),
expandMaxPrio = Table.ExpandRecordColumn(expandMinPrio, "maxPriority", {"Priority"}, {"maxPriority"}),
expandData = Table.ExpandTableColumn(expandMaxPrio, "data", {"Cod1", "Code 2", "Date", "Type ", "Priority"}, {"Cod1", "Code 2", "Date", "Type ", "Priority"}),
chgDateLocaleUS = Table.TransformColumnTypes(expandData, {{"Date", type datetime}}, "en-US"),
chgAllDataTypes = Table.TransformColumnTypes(chgDateLocaleUS,{{"Cod1", type text}, {"Code 2", type text}, {"Date", type date}, {"Priority", type number}, {"minPriority", type number}, {"maxPriority", type number}})
in
chgAllDataTypes
¿Creo que esto puede quitarle algo de la carga de cálculo?
Proud to be a Datanaut!
@akampianakis , Durante la visualización de objetos visuales se puede reducir el número de columnas. Además, trate de tener sólo en pbix abierto
¿Es esto min-max estático o cambios basados en el filtro
https://drive.google.com/file/d/1g_1z_noSZSHvOoi-t4kgle8VOeNUrPOJ/view?usp=sharing
esta es la especie de vista que el usuario solicitó (no es la mejor manera de usar pbi, pero esa es la solicitud inmidiate actual)
El mínimo-máximo por proveedor no es exactamente estático, puede cambiar dependiendo del código 1 (esto es algo así como el pedido al proveedor)
Gracias mundo
OK, así que tienes el formato de salida que quieres, es sólo que las medidas están sobrecargando el límite de recursos, ¿verdad?
Tal vez intente agregar el Min/Max en la tabla en Power Query de antemano, algo como esto:
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("pdK7CoAwDIXhV5HOgknqpXUTFBFESsWp+P6v4WWRjvEsCYR825+SmadoSiPc3pOJ6FlSWa6EmAvq30sctrHYjxDW5X33zpzlZzvAOpX1mfX/rRBgGbACWAvYGrANYHVd5VbXVW6BrgToyqq7Oi8=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [#"Supl Name" = _t, Cod1 = _t, #"Code 2" = _t, Date = _t, #"Type " = _t, Priority = _t]),
groupSupplier = Table.Group(Source, {"Supl Name"}, {{"data", each _, type table [Supl Name=text, Cod1=number, Code 2=number, Date=text, #"Type "=text, Priority=number]}}),
addMinPrio = Table.AddColumn(groupSupplier, "minPriority", each Table.Min([data], "Priority")),
addMaxPrio = Table.AddColumn(addMinPrio, "maxPriority", each Table.Max([data], "Priority")),
expandMinPrio = Table.ExpandRecordColumn(addMaxPrio, "minPriority", {"Priority"}, {"minPriority"}),
expandMaxPrio = Table.ExpandRecordColumn(expandMinPrio, "maxPriority", {"Priority"}, {"maxPriority"}),
expandData = Table.ExpandTableColumn(expandMaxPrio, "data", {"Cod1", "Code 2", "Date", "Type ", "Priority"}, {"Cod1", "Code 2", "Date", "Type ", "Priority"}),
chgDateLocaleUS = Table.TransformColumnTypes(expandData, {{"Date", type datetime}}, "en-US"),
chgAllDataTypes = Table.TransformColumnTypes(chgDateLocaleUS,{{"Cod1", type text}, {"Code 2", type text}, {"Date", type date}, {"Priority", type number}, {"minPriority", type number}, {"maxPriority", type number}})
in
chgAllDataTypes
¿Creo que esto puede quitarle algo de la carga de cálculo?
Proud to be a Datanaut!
Parece plausible, pero la cuestión es que, por desgracia, sólo puedo crear medida, y no tengo acceso al modelo, ya que es en los servicios de análisis y no tengo privilegios para eso.
Creo que tal vez una columna calculada sobre el modelo podría hacer el truco, pero como se dijo antes, no tiene acceso a eso, así que estoy buscando cómo crear una medida efectiva en la vista en sí.
Hola @akampianakis
No entiende muy bien los requisitos, ¿podría por favor elaborar más? Dummy pbix con los resultados esperados será apreciado.
He subido un enlace con desde Google Drive con el resultado esperado, ya que debe buscar también en el archivo pbix. por favor, compruebe esto.
https://drive.google.com/file/d/1g_1z_noSZSHvOoi-t4kgle8VOeNUrPOJ/view?usp=sharing
Gracias de antemano.!
Podría deberse al número de cálculos en los que se está ejecutando al mismo tiempo. Es posible que el siguiente artículo le resulte útil para algunas ideas de solución de problemas. https://blog.crossjoin.co.uk/2020/01/20/visual-has-exceeded-the-available-resources-error-power-bi/
Sólo otro pensamiento ha intentado cambiar la medida a collumn calculado ¿todavía causa este problema?
Hola @akampianakis
¿Puede proporcionar un ejemplo de cómo se ve su salida deseada por favor?
Proud to be a Datanaut!
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 |