Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I'm looking for a DAX formula to count when a task changes from Open to Closed. I only need the task to be counted Closed once on the day it was closed. The closed tasks will remaining in the data set. Example data below, any help is greatly appreciated!
Solved! Go to Solution.
@Daxtothemax That's because I wrote it with a syntax error apparently:
VAR __MinClosedDate = MINX(FILTER('Table',[Task] = __Task && [Status] = "Closed"),[Date])
@Daxtothemax That's because I wrote it with a syntax error apparently:
VAR __MinClosedDate = MINX(FILTER('Table',[Task] = __Task && [Status] = "Closed"),[Date])
@Daxtothemax Try something like:
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())
Thank you for the response @Greg_Deckler . I'm getting an error on this part for some reason.
VAR __MinClosedDate = MINX(FILTER('Table',[Task] = __Task) && [Status] = "Closed"),[Date])
Any ideas why this would occur?
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!