Forum Discussion

omd001's avatar
omd001
Frequent Visitor
5 years ago
Solved

COUNT and USERELATIONSHIP Issue

I would like to count the number of projects with status "Completed" based on an inactive date relationship "Actual Completion Date". I used the following command: Completed = CALCULATE( COUNT...
  • omd001's avatar
    omd001
    5 years ago

    Hi Denis,

    I've managed to fix the issue using a different approach and it worked!

    Completed = CALCULATE([Total Projects], 'FACT Project'[Status]="Completed", USERELATIONSHIP('DIM Dates'[Date], 'FACT Project'[Actual Completion Date]))

     I basically created a new measure to count all the projects first, and thereafter filter it with the status then use the inactive relationship.