Forum Discussion

Mr_MicDaniel's avatar
Mr_MicDaniel
Regular Visitor
5 years ago
Solved

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...
  • ryan_mayu's avatar
    5 years ago

    Mr_MicDaniel

    pls try this

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