Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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:
Solved! Go to Solution.
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.
Hey @omd001 ,
use the FILTER as an argument for CALCULATE and just count the rows of the basic table. This will be filtered by the arguments in CALCULATE.
So try the following approach:
Completed =
CALCULATE(
COUNTROWS( 'FACT Project' ),
FILTER(
'FACT Project',
'FACT Project'[Status] = "Completed"
),
USERELATIONSHIP ( 'DIM Dates'[Date], 'FACT Project'[Actual Completion Date] )
)
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.
Thanks Denis.
It's strange that it only returned 2 rows of data and I am expecting more. I have no filters causing this so I wonder why it is not returning the expected results.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 6 | |
| 6 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 24 | |
| 17 | |
| 9 | |
| 7 | |
| 6 |