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

Mes específico de las conteos para un año específico

Hola

He creado la medida para contar el total de filas de Fecha devuelta, incluido el valor en blanco. Exactamente tengo los números de cuenta.

Sin embargo, quiero excluir específicamente la fecha del mes en el año 2020. En este caso enero y febrero. ¿Cómo puedo obtener una medida correcta?

La medida que usé como se indica a continuación: (Esto contará toda la fecha para 2019,2020 incluyendo Blank)

Medida devuelta previa: CALCULATE(COUNTROWS('Data2020'), filter('Data2020', YEAR('Data2020'[Batch Return Date]) en los valores de 2019, 2020, isblank('Data2020'[Batch Date Return])))

Gracias

1 ACCEPTED SOLUTION
v-yiruan-msft
Community Support
Community Support

No @Zaky ,

Puede actualizar la fórmula de su medida [] como se indica a continuación:

Medida devuelta previa (Previous Returned Measure)
COUNTROWS (
FILTRO (
«Datos2020»,
(
Año ( 'Data2020'[Fecha de devolución del lote] )
EN 2019, 2020
&& NO (
CONCATENAR (
Año ( 'Data2020'[Fecha de devolución del lote] ),
FORMAT ( 'Data2020'[Fecha de devolución del lote], "mm" )
)
EN "202001", "202002"
) )
|| ISBLANK ( 'Data2020'[Fecha de devolución del lote] )
)
)

countrows.JPG

Saludos

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.

View solution in original post

1 REPLY 1
v-yiruan-msft
Community Support
Community Support

No @Zaky ,

Puede actualizar la fórmula de su medida [] como se indica a continuación:

Medida devuelta previa (Previous Returned Measure)
COUNTROWS (
FILTRO (
«Datos2020»,
(
Año ( 'Data2020'[Fecha de devolución del lote] )
EN 2019, 2020
&& NO (
CONCATENAR (
Año ( 'Data2020'[Fecha de devolución del lote] ),
FORMAT ( 'Data2020'[Fecha de devolución del lote], "mm" )
)
EN "202001", "202002"
) )
|| ISBLANK ( 'Data2020'[Fecha de devolución del lote] )
)
)

countrows.JPG

Saludos

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.

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.