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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.