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
Syndicate_Admin
Administrator
Administrator

Countifs en PowerBI

Hola

Tengo una fórmula en Power Query de Excel:
=COUNTIFS(Append1!$BF:$BF,">=01/01/2020",Append1!$BF:$BF,"<18/11/2022",Append1!$D:$D,"<>24 Solicitud retirada")

Deseo convertirlo en la fórmula de Power Query de PowerBI.

Por favor, avise ya que encuentro que el lenguaje DAX en PB es realmente confuso.


4 REPLIES 4
Syndicate_Admin
Administrator
Administrator

Aquí está mi sintaxis y la foto que muestra el resaltado rojo se adjunta:Picture1.png

Start_on_site =
COUNTROWS(
FILTRO(
'Plantilla de informe semanal',
'Plantilla de informe semanal'[Fecha de inicio del trabajador social en el sitio]>=FECHA(2020,1,1)
&&'Plantilla de informe semanal'[Fecha de inicio del trabajador social en el sitio]<FECHA(2022,11,18)
))
Syndicate_Admin
Administrator
Administrator

Con DAX, se crea una medida como esta:

Recuento :=
COUNTROWS(
FILTRO(
Apéndice 1,
Append1[Columna]>=FECHA(2020,1,1)
&&Append1[Columna]<>
)
)
Por cierto, Power Query usa otro idioma llamado lenguaje M y es diferente de DAX.

Gracias. Probé la sintaxis y funcionó, pero hay un resaltado / columna roja en el control deslizante a la derecha de la barra de fórmulas.

¿Qué indica? Creo que hay un error en algún lugar de la sintaxis, pero calculó y produjo el resultado correcto.

Estoy perplejo.


¿Puedes hacer una instantánea?

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.