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 a todos
Tengo una columna calculada para una aplicación de software que cuenta cuántas sesiones son "simultáneas" con otra sesión (en otras palabras, "eventos en curso"). Como se muestra a continuación:
Concurrent with this session =
COUNTROWS (
FILTER (
Sessions,
Sessions[Id] <> EARLIER(Sessions[Id])
&& NOT (Sessions[End] < EARLIER(Sessions[Start] ) || Sessions[Start] > EARLIER(Sessions[End]) )
)
) +1
Esto ha funcionado bien durante varios meses, pero recientemente, ya que el tamaño de mi base de datos ha crecido a alrededor de 5.000 filas, ahora tarda mucho tiempo en actualizarse y está agotando el tiempo de espera en power Bi Service, lo que hace que el conjunto de datos no se actualice.
¿Hay alguna manera de "optimizar" esto para mejorar el rendimiento?
Encontré otra sugerencia en otro lugar (como a continuación) pero no he tenido suerte traduciendo esto para mis datos:
=Calculate(
CountRows(FactInternetSales),
Filter(Values(FactInternetSales[OrderDateKey]), Min(DimDate[DateKey])>=[OrderDateKey]),
Filter(Values(FactInternetSales[ShipDateKey]), Max(DimDate[DateKey])<=[ShipDateKey]))
hola @dnewton
Si puede probar esta fórmula como se muestra a continuación:
Concurrent with this session =
var _Id=Sessions[Id]
var _Start=Sessions[Start]
var _End=Sessions[End]
Return
COUNTROWS (
FILTER (
Sessions,
Sessions[Id] <> _Id
&& NOT (Sessions[End] < _Start || Sessions[Start] > _End )
)
) +1
O
Concurrent with this session =
var _Id=Sessions[Id]
var _Start=Sessions[Start]
var _End=Sessions[End]
Return
COUNTROWS (
FILTER (
Sessions,
Sessions[Id] <> _Id
&& (Sessions[End] >= _Start && Sessions[Start] <= _End )
)
) +1
saludos
Lin
Esto funcionó perfectamente - gracias!
Tal vez algo en esta serie de artículos ayudará: https://community.powerbi.com/t5/Community-Blog/Performance-Tuning-DAX-Part-1/ba-p/976275
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 |