Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Syndicate_Admin
Administrator
Administrator

Recuento de tareas cerradas

Estoy buscando una fórmula DAX para contar cuando una tarea cambia de Abierto a Cerrado. Solo necesito que la tarea se cuente Cerrada una vez el día que se cerró. Las tareas cerradas permanecerán en el conjunto de datos. Datos de ejemplo a continuación, ¡cualquier ayuda es muy apreciada!

FechaTareaEstadoConde de Cerrado
2/1/2022Tarea AAbrir
2/1/2022Tarea BAbrir
2/1/2022Tarea CAbrir
2/2/2022Tarea ACerrado1
2/2/2022Tarea BAbrir
2/2/2022Tarea CAbrir
2/3/2022Tarea ACerrado
2/3/2022Tarea BCerrado1
2/3/2022Tarea CAbrir
2/4/2022Tarea ACerrado
2/4/2022Tarea BCerrado
2/4/2022Tarea CCerrado1
1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

@Daxtothemax Eso es porque lo escribí con un error de sintaxis aparentemente:

VAR __MinClosedDate = MINX(FILTER('Table',[Task] = __Task && [Status] = "Closed"),[Date])

View solution in original post

3 REPLIES 3
Syndicate_Admin
Administrator
Administrator

@Daxtothemax Eso es porque lo escribí con un error de sintaxis aparentemente:

VAR __MinClosedDate = MINX(FILTER('Table',[Task] = __Task && [Status] = "Closed"),[Date])

Syndicate_Admin
Administrator
Administrator

@Daxtothemax Prueba algo como:

Count of Closed Column =
  VAR __Task = [Task]
  VAR __Date = [Date]
  VAR __Status = [Status]
  VAR __MinClosedDate = MINX(FILTER('Table',[Task] = __Task) && [Status] = "Closed"),[Date])
RETURN
  IF(__Date = __MinClosedDate && [Status] = "Closed",1,BLANK())

Gracias por la respuesta @Greg_Deckler . Estoy recibiendo un error en esta parte por alguna razón.

VAR __MinClosedDate = MINX(FILTER('Table',[Task] = __Task) && [Status] = "Closed"),[Date])

¿Alguna idea de por qué ocurriría esto?

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.