Quick report graph from "n" detail fild's

I have a quick report in which I want to add a chart in which data comes from adoquery, and I filter the data for the first master record. Everything works fine for the next, when it works, how can I deal with this problem?

Master Table (numberacao_1) Autoenc Detailed Table (numberacao_1) enter image description here

SELECT   Count(  GrauAnomalia and Anomaliatipo) AS SomaDeGrauAnomalia,GrauAnomalia , Anomaliatipo   from   Vibrometria_Sub_Sub
 where numeracao_1=:numeracao_1                                                                  GROUP BY GrauAnomalia ,Anomaliatipo      
+5
source share

All Articles