title: my table jasper report repeat the data many time
body: <p>this is my code</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="Etat" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="4fe2b837-0ba5-48c3-b3af-dbef44fc0e24"&gt;
      &lt;property name="com.jaspersoft.studio.data.defaultdataadapter" value="Participation"/&gt;
      &lt;style name="Table_TH" mode="Opaque" backcolor="#F0F8FF"&gt;
          &lt;box&gt;
              &lt;pen lineWidth="0.5" lineColor="#000000"/&gt;
              &lt;topPen lineWidth="0.5" lineColor="#000000"/&gt;
              &lt;leftPen lineWidth="0.5" lineColor="#000000"/&gt;
              &lt;bottomPen lineWidth="0.5" lineColor="#000000"/&gt;
              &lt;rightPen lineWidth="0.5" lineColor="#000000"/&gt;
          &lt;/box&gt;
      &lt;/style&gt;
      &lt;style name="Table_CH" mode="Opaque" backcolor="#BFE1FF"&gt;
          &lt;box&gt;
              &lt;pen lineWidth="0.5" lineColor="#000000"/&gt;
              &lt;topPen lineWidth="0.5" lineColor="#000000"/&gt;
              &lt;leftPen lineWidth="0.5" lineColor="#000000"/&gt;
              &lt;bottomPen lineWidth="0.5" lineColor="#000000"/&gt;
              &lt;rightPen lineWidth="0.5" lineColor="#000000"/&gt;
          &lt;/box&gt;
      &lt;/style&gt;
      &lt;style name="Table_TD" mode="Opaque" backcolor="#FFFFFF"&gt;
          &lt;box&gt;
              &lt;pen lineWidth="0.5" lineColor="#000000"/&gt;
              &lt;topPen lineWidth="0.5" lineColor="#000000"/&gt;
              &lt;leftPen lineWidth="0.5" lineColor="#000000"/&gt;
              &lt;bottomPen lineWidth="0.5" lineColor="#000000"/&gt;
              &lt;rightPen lineWidth="0.5" lineColor="#000000"/&gt;
          &lt;/box&gt;
      &lt;/style&gt;
      &lt;style name="Table 1_TH" mode="Opaque" backcolor="#F0F8FF"&gt;
          &lt;box&gt;
              &lt;pen lineWidth="0.5" lineColor="#000000"/&gt;
              &lt;topPen lineWidth="0.5" lineColor="#000000"/&gt;
              &lt;leftPen lineWidth="0.5" lineColor="#000000"/&gt;
              &lt;bottomPen lineWidth="0.5" lineColor="#000000"/&gt;
              &lt;rightPen lineWidth="0.5" lineColor="#000000"/&gt;
          &lt;/box&gt;
      &lt;/style&gt;
      &lt;style name="Table 1_CH" mode="Opaque" backcolor="#BFE1FF"&gt;
          &lt;box&gt;
              &lt;pen lineWidth="0.5" lineColor="#000000"/&gt;
              &lt;topPen lineWidth="0.5" lineColor="#000000"/&gt;
              &lt;leftPen lineWidth="0.5" lineColor="#000000"/&gt;
              &lt;bottomPen lineWidth="0.5" lineColor="#000000"/&gt;
              &lt;rightPen lineWidth="0.5" lineColor="#000000"/&gt;
          &lt;/box&gt;
      &lt;/style&gt;
      &lt;style name="Table 1_TD" mode="Opaque" backcolor="#FFFFFF"&gt;
          &lt;box&gt;
              &lt;pen lineWidth="0.5" lineColor="#000000"/&gt;
              &lt;topPen lineWidth="0.5" lineColor="#000000"/&gt;
              &lt;leftPen lineWidth="0.5" lineColor="#000000"/&gt;
              &lt;bottomPen lineWidth="0.5" lineColor="#000000"/&gt;
              &lt;rightPen lineWidth="0.5" lineColor="#000000"/&gt;
          &lt;/box&gt;
      &lt;/style&gt;
      &lt;subDataset name="DS_Participation" uuid="ea882ad3-3349-40ed-b1ff-036d84a05d65"&gt;
          &lt;property name="com.jaspersoft.studio.data.defaultdataadapter" value="Participation"/&gt;
          &lt;queryString&gt;
              &lt;![CDATA[SELECT "ParticipationFilleS"."nomParticipationFilleS" AS nom,
      "ParticipationFilleS"."id_participationFilleS" AS idp,
      "ParticipationFilleS"."secteurActivite" AS secteurActivite,
      "ParticipationFilleS".date_aquisition AS date_aquisition,
      "ParticipationFilleS"."Prix_acquisition" AS Prix_acquisition,
      "ParticipationFilleS".tri_actualise AS tri_actualise,
      "associationMF"."id_participationfilleS" AS ids,
      "associationMF".pourcentage,
      "associationMF".id_participation AS ID,
      "Participation".id_participation,
      "Participation".nom_participation
  FROM "ParticipationFilleS"
       INNER JOIN associationMF ON 
       "associationMF".id_participationfilleS = "ParticipationFilleS"."id_participationfilleS" 
       INNER JOIN Participation ON 
       "Participation".id_participation = "associationMF".id_participation
  WHERE 
       "ParticipationFilleS"."id_participationFilleS" = 98]]&gt;
          &lt;/queryString&gt;
          &lt;field name="nom" class="java.lang.String"/&gt;
          &lt;field name="secteurActivite" class="java.lang.String"/&gt;
          &lt;field name="date_aquisition" class="java.sql.Timestamp"/&gt;
          &lt;field name="Prix_acquisition" class="java.lang.Double"/&gt;
          &lt;field name="tri_actualise" class="java.lang.Double"/&gt;
          &lt;field name="pourcentage" class="java.lang.Double"/&gt;
          &lt;field name="nom_participation" class="java.lang.String"/&gt;
          &lt;group name="nom"&gt;
              &lt;groupExpression&gt;&lt;![CDATA[$F{nom}]]&gt;&lt;/groupExpression&gt;
          &lt;/group&gt;
      &lt;/subDataset&gt;
      &lt;field name="nom" class="java.lang.String"/&gt;
      &lt;field name="idp" class="java.lang.Integer"/&gt;
      &lt;field name="secteurActivite" class="java.lang.String"/&gt;
      &lt;field name="date_aquisition" class="java.sql.Timestamp"/&gt;
      &lt;field name="Prix_acquisition" class="java.lang.Double"/&gt;
      &lt;field name="tri_actualise" class="java.lang.Double"/&gt;
      &lt;field name="ids" class="java.lang.Integer"/&gt;
      &lt;field name="pourcentage" class="java.lang.Double"/&gt;
      &lt;field name="ID" class="java.lang.Integer"/&gt;
      &lt;field name="id_participation" class="java.lang.Integer"/&gt;
      &lt;field name="nom_participation" class="java.lang.String"/&gt;
      &lt;group name="nom"&gt;
          &lt;groupExpression&gt;&lt;![CDATA[$F{nom}]]&gt;&lt;/groupExpression&gt;
      &lt;/group&gt;
      &lt;title&gt;
          &lt;band height="152" splitType="Stretch"&gt;
              &lt;image&gt;
                  &lt;reportElement x="-10" y="78" width="201" height="65" uuid="331a5642-d068-4bed-b795-18334b494880"/&gt;
                  &lt;imageExpression&gt;&lt;![CDATA["C:/wamp/www/participation/rapports/logo-mamda-mcma1.jpg"]]&gt;&lt;/imageExpression&gt;
              &lt;/image&gt;
              &lt;staticText&gt;
                  &lt;reportElement x="380" y="92" width="175" height="21" uuid="9c6b544e-4686-454f-bf0e-144c746eeeee"/&gt;
                  &lt;textElement&gt;
                      &lt;font size="16"/&gt;
                  &lt;/textElement&gt;
                  &lt;text&gt;&lt;![CDATA[Fonds d'investissement]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
              &lt;textField&gt;
                  &lt;reportElement x="390" y="113" width="175" height="39" uuid="1e8724fc-5e64-4458-a579-28cf32d6dd2f"/&gt;
                  &lt;textElement&gt;
                      &lt;font size="18"/&gt;
                  &lt;/textElement&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{nom}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
          &lt;/band&gt;
      &lt;/title&gt;
      &lt;detail&gt;
          &lt;band height="183" splitType="Stretch"&gt;
              &lt;componentElement&gt;
                  &lt;reportElement x="0" y="34" width="555" height="101" uuid="ed5fee48-f9ca-4025-8b6d-c357eb81483a"/&gt;
                  &lt;jr:table xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd"&gt;
                      &lt;datasetRun subDataset="DS_Participation" uuid="a9722c2d-d802-4f86-a305-fdc2e1df98b0"&gt;
                          &lt;connectionExpression&gt;&lt;![CDATA[$P{REPORT_CONNECTION}]]&gt;&lt;/connectionExpression&gt;
                      &lt;/datasetRun&gt;
                      &lt;jr:column width="79" uuid="42d1b1c5-d055-4f78-b26a-f8fda409efe3"&gt;
                          &lt;jr:tableHeader style="Table 1_TH" height="30"/&gt;
                          &lt;jr:tableFooter style="Table 1_TH" height="30"/&gt;
                          &lt;jr:columnHeader style="Table 1_CH" height="30"&gt;
                              &lt;staticText&gt;
                                  &lt;reportElement x="0" y="0" width="79" height="30" uuid="aa702fbd-0f5c-4b17-b0d4-d2e10dc03f14"/&gt;
                                  &lt;text&gt;&lt;![CDATA[nom]]&gt;&lt;/text&gt;
                              &lt;/staticText&gt;
                          &lt;/jr:columnHeader&gt;
                          &lt;jr:columnFooter style="Table 1_CH" height="30"/&gt;
                          &lt;jr:detailCell style="Table 1_TD" height="30"&gt;
                              &lt;textField&gt;
                                  &lt;reportElement x="0" y="0" width="79" height="30" uuid="0de56ce4-d664-4931-8ece-106e5e768db4"/&gt;
                                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{nom}]]&gt;&lt;/textFieldExpression&gt;
                              &lt;/textField&gt;
                          &lt;/jr:detailCell&gt;
                      &lt;/jr:column&gt;
                      &lt;jr:column width="79" uuid="90a31a3a-df77-43a2-9520-111241cb584b"&gt;
                          &lt;jr:tableHeader style="Table 1_TH" height="30"/&gt;
                          &lt;jr:tableFooter style="Table 1_TH" height="30"/&gt;
                          &lt;jr:columnHeader style="Table 1_CH" height="30"&gt;
                              &lt;staticText&gt;
                                  &lt;reportElement x="0" y="0" width="79" height="30" uuid="abce9d38-7201-4c2a-a3c4-fee0dda11b41"/&gt;
                                  &lt;text&gt;&lt;![CDATA[secteurActivite]]&gt;&lt;/text&gt;
                              &lt;/staticText&gt;
                          &lt;/jr:columnHeader&gt;
                          &lt;jr:columnFooter style="Table 1_CH" height="30"/&gt;
                          &lt;jr:detailCell style="Table 1_TD" height="30"&gt;
                              &lt;textField&gt;
                                  &lt;reportElement x="0" y="0" width="79" height="30" uuid="b8f6e00d-b779-4da7-8d3f-26fd82cb5b0b"/&gt;
                                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{secteurActivite}]]&gt;&lt;/textFieldExpression&gt;
                              &lt;/textField&gt;
                          &lt;/jr:detailCell&gt;
                      &lt;/jr:column&gt;
                      &lt;jr:column width="79" uuid="fa42462e-9f80-4501-895c-e3dd6832eb38"&gt;
                          &lt;jr:tableHeader style="Table 1_TH" height="30"/&gt;
                          &lt;jr:tableFooter style="Table 1_TH" height="30"/&gt;
                          &lt;jr:columnHeader style="Table 1_CH" height="30"&gt;
                              &lt;staticText&gt;
                                  &lt;reportElement x="0" y="0" width="79" height="30" uuid="1f82288b-d999-4f24-a9de-6592706552dc"/&gt;
                                  &lt;text&gt;&lt;![CDATA[date_aquisition]]&gt;&lt;/text&gt;
                              &lt;/staticText&gt;
                          &lt;/jr:columnHeader&gt;
                          &lt;jr:columnFooter style="Table 1_CH" height="30"/&gt;
                          &lt;jr:detailCell style="Table 1_TD" height="30"&gt;
                              &lt;textField&gt;
                                  &lt;reportElement x="0" y="0" width="79" height="30" uuid="88d0f870-061a-495f-b6ff-a742620f8a0e"/&gt;
                                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{date_aquisition}]]&gt;&lt;/textFieldExpression&gt;
                              &lt;/textField&gt;
                          &lt;/jr:detailCell&gt;
                      &lt;/jr:column&gt;
                      &lt;jr:column width="79" uuid="ebb1be25-78d6-488b-bf5d-53e78bcf23ad"&gt;
                          &lt;jr:tableHeader style="Table 1_TH" height="30"/&gt;
                          &lt;jr:tableFooter style="Table 1_TH" height="30"/&gt;
                          &lt;jr:columnHeader style="Table 1_CH" height="30"&gt;
                              &lt;staticText&gt;
                                  &lt;reportElement x="0" y="0" width="79" height="30" uuid="d8fa37e9-f47c-4d98-99dc-9a138ebc60b8"/&gt;
                                  &lt;text&gt;&lt;![CDATA[Prix_acquisition]]&gt;&lt;/text&gt;
                              &lt;/staticText&gt;
                          &lt;/jr:columnHeader&gt;
                          &lt;jr:columnFooter style="Table 1_CH" height="30"/&gt;
                          &lt;jr:detailCell style="Table 1_TD" height="30"&gt;
                              &lt;textField&gt;
                                  &lt;reportElement x="0" y="0" width="79" height="30" uuid="cd844b1a-1c78-4d81-bb4d-5eaab888a2a8"/&gt;
                                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{Prix_acquisition}]]&gt;&lt;/textFieldExpression&gt;
                              &lt;/textField&gt;
                          &lt;/jr:detailCell&gt;
                      &lt;/jr:column&gt;
                      &lt;jr:column width="79" uuid="ab04b310-6350-4581-afea-ccdb59f8550a"&gt;
                          &lt;jr:tableHeader style="Table 1_TH" height="30"/&gt;
                          &lt;jr:tableFooter style="Table 1_TH" height="30"/&gt;
                          &lt;jr:columnHeader style="Table 1_CH" height="30"&gt;
                              &lt;staticText&gt;
                                  &lt;reportElement x="0" y="0" width="79" height="30" uuid="400b9d08-94a7-4a4e-a3bc-9404fcc97c53"/&gt;
                                  &lt;text&gt;&lt;![CDATA[tri_actualise]]&gt;&lt;/text&gt;
                              &lt;/staticText&gt;
                          &lt;/jr:columnHeader&gt;
                          &lt;jr:columnFooter style="Table 1_CH" height="30"/&gt;
                          &lt;jr:detailCell style="Table 1_TD" height="30"&gt;
                              &lt;textField&gt;
                                  &lt;reportElement x="0" y="0" width="79" height="30" uuid="f001a429-d66a-415f-9ad2-3e299c109436"/&gt;
                                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{tri_actualise}]]&gt;&lt;/textFieldExpression&gt;
                              &lt;/textField&gt;
                          &lt;/jr:detailCell&gt;
                      &lt;/jr:column&gt;
                      &lt;jr:column width="79" uuid="6239fbc2-7f9c-4e62-8ec8-4c9322d2fa3c"&gt;
                          &lt;jr:tableHeader style="Table 1_TH" height="30"/&gt;
                          &lt;jr:tableFooter style="Table 1_TH" height="30"/&gt;
                          &lt;jr:columnHeader style="Table 1_CH" height="30"&gt;
                              &lt;staticText&gt;
                                  &lt;reportElement x="0" y="0" width="79" height="30" uuid="ef7aab2a-d28a-4379-9e0b-c006c0b1a428"/&gt;
                                  &lt;text&gt;&lt;![CDATA[pourcentage]]&gt;&lt;/text&gt;
                              &lt;/staticText&gt;
                          &lt;/jr:columnHeader&gt;
                          &lt;jr:columnFooter style="Table 1_CH" height="30"/&gt;
                          &lt;jr:detailCell style="Table 1_TD" height="30"&gt;
                              &lt;textField&gt;
                                  &lt;reportElement x="0" y="0" width="79" height="30" uuid="35404325-1809-4a28-8b23-014f6d1ae6e8"/&gt;
                                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{pourcentage}]]&gt;&lt;/textFieldExpression&gt;
                              &lt;/textField&gt;
                          &lt;/jr:detailCell&gt;
                      &lt;/jr:column&gt;
                      &lt;jr:column width="79" uuid="fd81313b-0bc8-4cce-9165-1d593e68dbd7"&gt;
                          &lt;jr:tableHeader style="Table 1_TH" height="30"/&gt;
                          &lt;jr:tableFooter style="Table 1_TH" height="30"/&gt;
                          &lt;jr:columnHeader style="Table 1_CH" height="30"&gt;
                              &lt;staticText&gt;
                                  &lt;reportElement x="0" y="0" width="79" height="30" uuid="f36f5cf9-540e-48df-b080-6b1e53188b1f"/&gt;
                                  &lt;text&gt;&lt;![CDATA[nom_participation]]&gt;&lt;/text&gt;
                              &lt;/staticText&gt;
                          &lt;/jr:columnHeader&gt;
                          &lt;jr:columnFooter style="Table 1_CH" height="30"/&gt;
                          &lt;jr:detailCell style="Table 1_TD" height="30"&gt;
                              &lt;textField&gt;
                                  &lt;reportElement x="0" y="0" width="79" height="30" uuid="38267115-36b7-4d21-9564-3bff093ffd22"/&gt;
                                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{nom_participation}]]&gt;&lt;/textFieldExpression&gt;
                              &lt;/textField&gt;
                          &lt;/jr:detailCell&gt;
                      &lt;/jr:column&gt;
                  &lt;/jr:table&gt;
              &lt;/componentElement&gt;
              &lt;rectangle&gt;
                  &lt;reportElement x="0" y="0" width="556" height="31" backcolor="#9BD2F0" uuid="59d3e0f5-0000-4baf-9ef7-e2f0f4ba4042"/&gt;
              &lt;/rectangle&gt;
              &lt;staticText&gt;
                  &lt;reportElement x="1" y="0" width="554" height="34" uuid="864f305d-e436-4ab0-9441-e7eb7a30f02f"/&gt;
                  &lt;textElement&gt;
                      &lt;font size="18"/&gt;
                  &lt;/textElement&gt;
                  &lt;text&gt;&lt;![CDATA[Synthese des cessions realisees en milliers MAD]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
          &lt;/band&gt;
      &lt;/detail&gt;
  &lt;/jasperReport&gt;
  </code></pre>
  
  <p>as you can see in the picture i have only one table</p>
  
  <p><img src="https://i.stack.imgur.com/rYk4r.png" alt="table created byu jaspersoft"></p>
  
  <p>but when i generate the pdf it give me 2 or 3 table like in the picture
  <img src="https://i.stack.imgur.com/8eSVC.png" alt="table generated pdf"></p>
  
  <p>I dont know what happened and why it gives me 2 table </p>
  
  <p>How can i get only one table without having the same data repeated in many column and table?</p>