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
jprdynamicapps
Helper IV
Helper IV

Fuera de memoria en matriz con jerarquía al agregar una medida

Tengo un extraño problema con una matriz. Tiene 4 niveles de hiearchy y un montón de campos agregados.

Si le agrego una medida (incluso algo así como "medida 3"), se ejecuta para siempre y se queda sin memoria.

Si elimino el nivel más bajo de mi jerarquía, puedo agregar las medidas sin ningún problema.

Yo pensaría que hay algún tipo de bucle relacionado con la jerarquía.

¿Alguna idea de lo que podría estar pasando?

Para tu información, los 4 niveles de jerarquía son texto de tablas tenues. Los campos son todos de un par de tablas de hechos.

Gracias.

-jpr

11 REPLIES 11
parry2k
Super User
Super User

@jproutlook puede ser que el rendimiento de su medida no sea bueno. ¿Qué tipo de cálculo estás haciendo en medida?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

@parry2k,gracias por la respuesta. Incluso simplemente añadir una medida como "medida 3" causa el problema.

Eliminarlo o el nivel más bajo de mi jerarquía lo resuelve.

Gracias.

John

@jproutlook muy extraño, ¿qué tan grande es el conjunto de datos?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

@parry2k, bastante pequeño y funciona muy bien.

Tampoco hay otras medidas en la matriz.

Estoy perplejo. ¿Alguna idea sobre la solución de problemas?

Pude replicar en DAX Studio. Código abajo.

FPPR y FPMS son tablas de hechos.

Dim1-Dim4 son tablas tenues

Dim1text, etc. son archivos de texto de esas tablas dim.

Las relaciones son una sola dirección, desde tablas diminutas hasta tablas de hechos.

La eliminación de la medida 1 (que es sólo la medida 1-3) corrige el problema.

La eliminación de Dim4 soluciona el problema.

De lo contrario, me quedo sin memoria.

DEFINE VAR __ValueFilterDM5 = 
  FILTER(
    KEEPFILTERS(
      SUMMARIZECOLUMNS(
        'dim Dim1'[Dim1text],
        'dim Dim2'[Dim2text],
        'dim Dim3'[Dim3text],
        'dim Dim4'[Dim4text],
        "Measure_1", 'fact FPPR'[Measure 1],
        "SumField1", CALCULATE(SUM('fact FPPR'[Field1])),
        "AvgField2", CALCULATE(AVERAGE('fact FPPR'[Field2])),
        "AvgField3", CALCULATE(AVERAGE('fact FPPR'[Field3])),
        "SumField4", CALCULATE(SUM('fact FPMS'[Field4])),
        "SumField5", CALCULATE(SUM('fact FPPR'[Field5])),
        "SumField6", CALCULATE(SUM('fact FPPR'[Field6])),
        "v_Rowsin_FPPR", IGNORE('fact FPPR'[#Rowsin FPPR])
      )
    ),
    [v_Rowsin_FPPR] > 0
  )

EVALUATE
  TOPN(
    502,
    SUMMARIZECOLUMNS(
      ROLLUPADDISSUBTOTAL('dim Dim1text'[Dim1text], "IsGrandTotalRowTotal"),
      __ValueFilterDM5,
      "Measure_1", 'fact FPPR'[Measure 1],
      "SumField1", CALCULATE(SUM('fact FPPR'[Field1])),
      "AvgField2", CALCULATE(AVERAGE('fact FPPR'[Field2])),
      "AverageField3", CALCULATE(AVERAGE('fact FPPR'[Field3])),
      "SumField4", CALCULATE(SUM('fact FPMS'[Field4])),
      "SumField5", CALCULATE(SUM('fact FPPR'[Field5])),
      "SumField6", CALCULATE(SUM('fact FPPR'[Field6]))
    ),
    [IsGrandTotalRowTotal],
    0,
    'dim Dim1text'[Dim1text],
    1
  )

ORDER BY
  [IsGrandTotalRowTotal] DESC, 'dim Dim1text'[Dim1text]

@jproutlook puede compartir el diagrama de relaciones?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

@parry2k ,

Pude replicar el problema con una tabla de hechos y 4 dimensiones con una sola dirección 1: muchas relaciones entre la tabla de hechos y cada dimensión.


Ya que eso eliminó la mayoría de las variables, intenté otras cosas. Resulta que todo funciona si apunto un filtro que está establecido en #RowsinFPPR >0. #RowsinFPPR - Countrows('fact FPPR'). Esto es lo que estoy usando para asegurarme de que solo se incluyen los datos válidos de mi tabla de hechos.

¿Alguna idea de por qué esto sería un problema?

Gracias.

@jproutlook así que supongo que está utilizando esto como filtro de nivel visual? ¿Correcto? No está seguro de si necesita hacer esto ya que si la medida vuelve en blanco, no se mostrará en el objeto visual.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

@parry2k, Sí, estaba en el objeto visual. Tienes razón en que no es necesario en la matriz, sólo en las rebanadoras, así que se lo estoy aplicando solo a ellos ahora. Por lo tanto, mi problema está resuelto, pero tengo curiosidad si tiene una idea de por qué eso sería un problema.

Gracias.

Hola @jproutlook ,

Compruebe si la solución de los siguientes subprocesos puede ayudarle.

Filtros de jerarquía rompiendo cuando Matrix tiene Medir como valor

Matriz fuera de la memoria con nueva medida

Saludos

Rena

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@yingyinr Gracias, Rena. Yo había visto ambos de ellos y ninguno parece aplicar.

John

@parry2k Lo haré. Están pasando muchas cosas.

Estoy creando una versión que sólo tiene esas tablas para ver si todavía sucede y compartirla como un problema más simple.

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.