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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Johnson_Ang
New Member

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:
 
Picture2.jpg
Appreciate the community to guide and help me on this. 
 
Thanks
Johnson
1 REPLY 1
amitchandak
Super User
Super User

@Johnson_Ang , You have remove the join with created date(assumes that is used for new defect and is having active join )

Cumulative OS Defects =
CALCULATE(
COUNTA('Master Defect List PowerBI'[STATUS]),
'Master Defect List PowerBI'[STATUS] IN { "IN PROGRESS" },

crossfilter('Master Defect List PowerBI'[Created Date], 'Date'[Date]), none) )

 

example

Power BI: HR Analytics - Employees as on Date : https://youtu.be/e6Y-l_JtCq4
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors