Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Tengo una tabla de errores que tiene dos campos principales: entorno y fecha de creación. Necesito obtener el número total de errores por medio ambiente para los últimos 6 meses para cada mes. Probé muchas soluciones que encontré en línea, pero nada parecía funcionar.
Actualmente tengo múltiples medidas que calculan el número de errores por entorno por mes, así es como se ven:
Solved! Go to Solution.
Hola @malletman,
Puede intentar utilizar la siguiente fórmula de medida si cumple con sus requisitos:
Production Bugs =
VAR currDate =
MAX ( Bugs[createdDate] )
RETURN
COUNTROWS (
FILTER (
ALLSELECTED ( Bugs ),
Bugs[env] = "Production"
&& Bugs[createdDate]
>= DATE ( YEAR ( currDate ), MONTH ( currDate ) - 6, DAY ( currDate ) )
&& Bugs[createdDate] <= currDate
)
) + 0
saludos
Xiaoxin Sheng
Hola
Comparta algunos datos y muestre el resultado esperado.
Hola @malletman,
Puede intentar utilizar la siguiente fórmula de medida si cumple con sus requisitos:
Production Bugs =
VAR currDate =
MAX ( Bugs[createdDate] )
RETURN
COUNTROWS (
FILTER (
ALLSELECTED ( Bugs ),
Bugs[env] = "Production"
&& Bugs[createdDate]
>= DATE ( YEAR ( currDate ), MONTH ( currDate ) - 6, DAY ( currDate ) )
&& Bugs[createdDate] <= currDate
)
) + 0
saludos
Xiaoxin Sheng
@malletman , puede usar la segmentación de fecha relativa o este enfoque
https://www.youtube.com/watch?v=duMSovyosXE
rebanadora de fecha relativa
https://docs.microsoft.com/en-us/power-bi/visuals/desktop-slicer-filter-date-range
Necesito los datos reales, ya que necesito usarlos para otros cálculos. Así que tendría que ser una medida, creo.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
3 | |
1 | |
1 | |
1 | |
1 |