Defect Density Chart for Projects

I have been using EzyBI For some time now,

i have task to created Defect density chart for projects,

Could you guide where i can find the right metrics to get the (Defect Density output)?