Forum Discussion

Johnson_Ang's avatar
Johnson_Ang
New Member
3 years ago

Cumulative Defects Total Display in Clustered Bar and Line Chart

Hi,

I have 3 measures to compute new defects found, defect rectified and Cumulative O/S defects. The codes for each individual is shown as below:

New Defects Found = 

COUNTROWS('Master Defect List PowerBI')

 

Defect Rectified = 

CALCULATE(
    COUNT('Master Defect List PowerBI'[STATUS]),
    'Master Defect List PowerBI'[STATUS] = "COMPLETED",
    USERELATIONSHIP('Master Defect List PowerBI'[Completion Date], 'Date'[Date])
)
Cumulative OS Defects = 
CALCULATE(
    COUNTA('Master Defect List PowerBI'[STATUS]),
    'Master Defect List PowerBI'[STATUS] IN { "IN PROGRESS" }
)
 
However, the figures doesn't show the total as shown below:
 
Appreciate the community to guide and help me on this. 
 
Thanks
Johnson

1 Reply