title: Query Indicator column group by condition and value column
body: <p>I have a table shown below:</p>
  
  <pre><code>id | aspect | indicator  | condition     | value | description
  
  1  | Aspek 1| indicator1 | condition A   | 1     | Poor
  2  | Aspek 1| indicator1 | condition B   | 2     | Good
  3  | Aspek 1| indicator1 | condition C   | 3     | Perfect
  
  4  | Aspek 1| indicator2 | condition D   | 1     | Less
  5  | Aspek 1| indicator2 | condition E   | 2     | More
  6  | Aspek 1| indicator2 | condition F   | 3     | Full
  
  7  | Aspek 2| indicator3 | condition G   | 1     | Poor
  8  | Aspek 2| indicator3 | condition H   | 2     | Good
  9  | Aspek 2| indicator3 | condition I   | 3     | Perfect
  
  10  | Aspek 2| indicator4 | condition J  | 1     | Less
  11  | Aspek 2| indicator4 | condition K  | 2     | More
  12  | Aspek 2| indicator4 | condition L  | 3     | Full
  </code></pre>
  
  <p>I am able to iterate over the table rows with the code shown below, but I am unable to put conditions and perform column grouping based on the indicator column using a radio list like below.</p>
  
  <pre><code>&lt;code&gt;
      &lt;table id="example1" class="table table-bordered table-hover"&gt;
      &lt;thead&gt;
      &lt;tr&gt;
      &lt;th width="25"&gt;No.&lt;/th&gt;
      &lt;th&gt;Indikator&lt;/th&gt;
      &lt;th colspan="3" nowrap="nowrap" style="text-align:center"&gt;Poin&lt;/th&gt;
      &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
      &lt;tr&gt;
      &lt;td&gt;1&lt;/td&gt;
      &lt;td&gt;Pengurus&lt;/td&gt;
      &lt;td nowrap="nowrap" style="text-align:center"&gt;&lt;input type="radio" name="k1" class="flat-red" data-id="k01" /&gt; 1 &lt;/td&gt;
      &lt;td nowrap="nowrap" style="text-align:center"&gt;&lt;input type="radio" name="k1" class="flat-red" data-id="k01" /&gt; 2 &lt;/td&gt;
      &lt;td nowrap="nowrap" style="text-align:center"&gt;&lt;input type="radio" name="k1" class="flat-red" data-id="k01" /&gt; 3 &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
      &lt;td&gt;2&lt;/td&gt;
      &lt;td&gt;Pembagian Tugas&lt;/td&gt;
      &lt;td nowrap="nowrap" style="text-align:center"&gt;&lt;input type="radio" name="k2" class="flat-red" data-id="k12" /&gt; 1 &lt;/td&gt;
      &lt;td nowrap="nowrap" style="text-align:center"&gt;&lt;input type="radio" name="k2" class="flat-red" data-id="k12" /&gt; 2 &lt;/td&gt;
      &lt;td nowrap="nowrap" style="text-align:center"&gt;&lt;input type="radio" name="k2" class="flat-red" data-id="k12" /&gt; 3 &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
      &lt;td&gt;3&lt;/td&gt;
      &lt;td&gt;Admninistrasi Kelompok (Pembukuan lengkap)&lt;/td&gt;
      &lt;td nowrap="nowrap" style="text-align:center"&gt;&lt;input type="radio" name="k3" class="flat-red" data-id="k23" /&gt; 1 &lt;/td&gt;
      &lt;td nowrap="nowrap" style="text-align:center"&gt;&lt;input type="radio" name="k3" class="flat-red" data-id="k23" /&gt; 2 &lt;/td&gt;
      &lt;td nowrap="nowrap" style="text-align:center"&gt;&lt;input type="radio" name="k3" class="flat-red" data-id="k23" /&gt; 3 &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
      &lt;td&gt;4&lt;/td&gt;
      &lt;td&gt;Kerjasama antar KUBE&lt;/td&gt;
      &lt;td nowrap="nowrap" style="text-align:center"&gt;&lt;input type="radio" name="k4" class="flat-red" data-id="k34" /&gt; 1 &lt;/td&gt;
      &lt;td nowrap="nowrap" style="text-align:center"&gt;&lt;input type="radio" name="k4" class="flat-red" data-id="k34" /&gt; 2 &lt;/td&gt;
      &lt;td nowrap="nowrap" style="text-align:center"&gt;&lt;input type="radio" name="k4" class="flat-red" data-id="k34" /&gt; 3 &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
      &lt;td&gt;5&lt;/td&gt;
      &lt;td&gt;Proses pengambilan keputusan&lt;/td&gt;
      &lt;td nowrap="nowrap" style="text-align:center"&gt;&lt;input type="radio" name="k5" class="flat-red" data-id="k45" /&gt; 1 &lt;/td&gt;
      &lt;td nowrap="nowrap" style="text-align:center"&gt;&lt;input type="radio" name="k5" class="flat-red" data-id="k45" /&gt; 2 &lt;/td&gt;
      &lt;td nowrap="nowrap" style="text-align:center"&gt;&lt;input type="radio" name="k5" class="flat-red" data-id="k45" /&gt; 3 &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
      &lt;td&gt;6&lt;/td&gt;
      &lt;td&gt;Pertemuan anggota&lt;/td&gt;
      &lt;td nowrap="nowrap" style="text-align:center"&gt;&lt;input type="radio" name="k6" class="flat-red" data-id="k56" /&gt; 1 &lt;/td&gt;
      &lt;td nowrap="nowrap" style="text-align:center"&gt;&lt;input type="radio" name="k6" class="flat-red" data-id="k56" /&gt; 2 &lt;/td&gt;
      &lt;td nowrap="nowrap" style="text-align:center"&gt;&lt;input type="radio" name="k6" class="flat-red" data-id="k56" /&gt; 3 &lt;/td&gt;
      &lt;/tr&gt;
      &lt;/tbody&gt;
      &lt;tfoot&gt;
      &lt;tr&gt;
      &lt;th&gt;&lt;/th&gt;
      &lt;th style="text-align:center"&gt;Sub Nilai Aspek Kelembagaan&lt;/th&gt;
      &lt;th width="6%"&gt;Poin&lt;/th&gt;
      &lt;th width="6%"&gt;Poin&lt;/th&gt;
      &lt;th width="6%"&gt;Poin&lt;/th&gt;
      &lt;/tr&gt;
      &lt;/tfoot&gt;
      &lt;/table&gt;
      &lt;/code&gt;
  </code></pre>
  
  <p>Please help me to iterate over the indicator column with the correct condition and value in the right order.</p>