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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Mr_MicDaniel
Regular Visitor

Distinct Count Goal as completed when all Task Status is marked as completed

Good Day BI generals, what approach and dax function can i use to solve this challenge on my subject (distinct count Goal as completed when all Task is marked as completed ), Below is a dummy table i have generated  to guide you. Thanks

for example  all tasks in Web goal has Status as Completed so it will count as 1 Goal and not two.

@Greg_Deckler @amitchandak @wdx223_Daniel @ryan_mayu Please i need this solution, thanks in anticipation

Dummy Table

TEAMSPROJECTQUARTERGOALSTARGETSTASKSTask STATUS
DataProject 1Q1Goal 1Sample targetData cleaningCompleted
DataProject 1Q1Goal 1Sample targetData vizIn Progress
DataProject 1Q1Goal 1Sample targetDashboardIn Progress
DataProject dataQ1Goal 2Sample targData restructureCompleted
DataProject dataQ1Goal 2Sample targData CollectionCompleted
DataProject dataQ1Goal 3Sample targDiscoveryIn Progress
Web developmentWeb project 1Q2Web goalTargetSite devCompleted
Web developmentWeb project 1Q2Web goalTargetApp devCompleted
Web developmentWeb sample projectQ2Sample goalNew targetCode reviewIn Progress
Web developmentWeb sample projectQ2Sample goalNew targetDocumatation reviewCompleted

 

This is the expected output

SUB TEAMSPROJECTQUARTERTotal Unique goalsCompleted goals
DataProject dataQ121
DataProject 1Q110
Web development Web project 1Q211
Web development Web sample projectQ210
1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@Mr_MicDaniel

pls try this

unique goal = DISTINCTCOUNT('Table'[GOALS])

Complete goals = [unique goal]-CALCULATE(DISTINCTCOUNT('Table'[GOALS]),FILTER('Table','Table'[Task STATUS]<>"Completed"))

1.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
wdx223_Daniel
Super User
Super User

wdx223_Daniel_0-1630888796751.png

 

ryan_mayu
Super User
Super User

@Mr_MicDaniel

pls try this

unique goal = DISTINCTCOUNT('Table'[GOALS])

Complete goals = [unique goal]-CALCULATE(DISTINCTCOUNT('Table'[GOALS]),FILTER('Table','Table'[Task STATUS]<>"Completed"))

1.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors