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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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