<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Pie Chart: How to set token row. in contextual drilldown? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Pie-Chart-How-to-set-token-row-in-contextual-drilldown/m-p/224174#M13910</link>
    <description>&lt;P&gt;Hello somesoni2,&lt;/P&gt;

&lt;P&gt;Please see the answer below.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jun 2016 21:39:07 GMT</pubDate>
    <dc:creator>markux</dc:creator>
    <dc:date>2016-06-21T21:39:07Z</dc:date>
    <item>
      <title>Pie Chart: How to set token row. in contextual drilldown?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Pie-Chart-How-to-set-token-row-in-contextual-drilldown/m-p/224172#M13908</link>
      <description>&lt;P&gt;Regard's, &lt;/P&gt;

&lt;P&gt;I have a dashboard with a pie chart . This chart has a contextual drilldown that displays a table with data of the clicked field. &lt;/P&gt;

&lt;P&gt;The problem is that I'm displaying the count field with the label as follows (field." [ ".count." ]" and this value is passed to the drilldown. Since there is no field with this value, my table does not return anything. &lt;/P&gt;

&lt;P&gt;I researched it and found that it is possible to use the value of a field for the token, but this did not work.&lt;/P&gt;

&lt;P&gt;This doesn't work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;drilldown&amp;gt;
   &amp;lt;set token="status_value"&amp;gt;$row.statusCust$&amp;lt;/set&amp;gt;
&amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;in the search I do it, but the token does not solve to the value&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search status_custo="$status_value$"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;could anyone help?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2016 21:00:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Pie-Chart-How-to-set-token-row-in-contextual-drilldown/m-p/224172#M13908</guid>
      <dc:creator>markux</dc:creator>
      <dc:date>2016-06-21T21:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Pie Chart: How to set token row. in contextual drilldown?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Pie-Chart-How-to-set-token-row-in-contextual-drilldown/m-p/224173#M13909</link>
      <description>&lt;P&gt;Could you post your pie chart search and the drilldown search ?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2016 21:14:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Pie-Chart-How-to-set-token-row-in-contextual-drilldown/m-p/224173#M13909</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-06-21T21:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Pie Chart: How to set token row. in contextual drilldown?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Pie-Chart-How-to-set-token-row-in-contextual-drilldown/m-p/224174#M13910</link>
      <description>&lt;P&gt;Hello somesoni2,&lt;/P&gt;

&lt;P&gt;Please see the answer below.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2016 21:39:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Pie-Chart-How-to-set-token-row-in-contextual-drilldown/m-p/224174#M13910</guid>
      <dc:creator>markux</dc:creator>
      <dc:date>2016-06-21T21:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Pie Chart: How to set token row. in contextual drilldown?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Pie-Chart-How-to-set-token-row-in-contextual-drilldown/m-p/224175#M13911</link>
      <description>&lt;P&gt;Hello somesoni2,&lt;/P&gt;

&lt;P&gt;Thanks for the answer. Follow the required codes.&lt;/P&gt;

&lt;P&gt;Pie Chart Code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;chart&amp;gt;
            &amp;lt;search&amp;gt;
              &amp;lt;query&amp;gt;sourcetype="relatorioGeral" considerar="Sim" status_projeto="Execução" codigo != NULL 
                             categoria="Projeto" cliente="$tk_cliente$" $tk_gp$              
                           | dedup codigo              
                           | eval statusCusto=if(total_custo_projetado &amp;gt; total_custo_estimado, 
                              "Fora do Custo", "Dentro do Custo")             
                           | stats count by statusCusto | eval statusCusto=statusCusto ." [".count."] "&amp;lt;/query&amp;gt;
              &amp;lt;earliest&amp;gt;$tk_periodo.earliest$&amp;lt;/earliest&amp;gt;
              &amp;lt;latest&amp;gt;$tk_periodo.latest$&amp;lt;/latest&amp;gt;
            &amp;lt;/search&amp;gt;
            &amp;lt;option name="charting.chart"&amp;gt;pie&amp;lt;/option&amp;gt;
            &amp;lt;option name="charting.axisLabelsX.majorLabelStyle.overflowMode"&amp;gt;ellipsisNone&amp;lt;/option&amp;gt;
            &amp;lt;option name="charting.axisLabelsX.majorLabelStyle.rotation"&amp;gt;0&amp;lt;/option&amp;gt;
            &amp;lt;option name="charting.axisTitleX.visibility"&amp;gt;collapsed&amp;lt;/option&amp;gt;
            &amp;lt;option name="charting.axisTitleY.visibility"&amp;gt;collapsed&amp;lt;/option&amp;gt;
            &amp;lt;option name="charting.axisTitleY2.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
            &amp;lt;option name="charting.axisX.scale"&amp;gt;linear&amp;lt;/option&amp;gt;
            &amp;lt;option name="charting.axisY.scale"&amp;gt;linear&amp;lt;/option&amp;gt;
            &amp;lt;option name="charting.axisY2.enabled"&amp;gt;0&amp;lt;/option&amp;gt;
            &amp;lt;option name="charting.axisY2.scale"&amp;gt;inherit&amp;lt;/option&amp;gt;
            &amp;lt;option name="charting.chart.bubbleMaximumSize"&amp;gt;50&amp;lt;/option&amp;gt;
            &amp;lt;option name="charting.chart.bubbleMinimumSize"&amp;gt;10&amp;lt;/option&amp;gt;
            &amp;lt;option name="charting.chart.bubbleSizeBy"&amp;gt;area&amp;lt;/option&amp;gt;
            &amp;lt;option name="charting.chart.nullValueMode"&amp;gt;gaps&amp;lt;/option&amp;gt;
            &amp;lt;option name="charting.chart.showDataLabels"&amp;gt;none&amp;lt;/option&amp;gt;
            &amp;lt;option name="charting.chart.sliceCollapsingThreshold"&amp;gt;0.5&amp;lt;/option&amp;gt;
            &amp;lt;option name="charting.chart.stackMode"&amp;gt;default&amp;lt;/option&amp;gt;
            &amp;lt;option name="charting.chart.style"&amp;gt;shiny&amp;lt;/option&amp;gt;
            &amp;lt;option name="charting.drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
            &amp;lt;option name="charting.layout.splitSeries"&amp;gt;0&amp;lt;/option&amp;gt;
            &amp;lt;option name="charting.layout.splitSeries.allowIndependentYRanges"&amp;gt;0&amp;lt;/option&amp;gt;
            &amp;lt;option name="charting.legend.labelStyle.overflowMode"&amp;gt;ellipsisMiddle&amp;lt;/option&amp;gt;
            &amp;lt;option name="charting.legend.placement"&amp;gt;bottom&amp;lt;/option&amp;gt;
            &amp;lt;option name="charting.chart.showPercent"&amp;gt;true&amp;lt;/option&amp;gt;
            &amp;lt;option name="charting.seriesColors"&amp;gt;[0x00B050,0xFF0000]&amp;lt;/option&amp;gt;
            &amp;lt;drilldown&amp;gt;
              &amp;lt;set token="status_value"&amp;gt;$click.value$&amp;lt;/set&amp;gt;
            &amp;lt;/drilldown&amp;gt;
          &amp;lt;/chart&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Row Depentend:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;row depends="$status_value$"&amp;gt;
        &amp;lt;panel&amp;gt;
          &amp;lt;table&amp;gt;
            &amp;lt;title&amp;gt;Projetos $status_value$&amp;lt;/title&amp;gt;
            &amp;lt;search&amp;gt;
              &amp;lt;query&amp;gt;sourcetype="relatorioGeral" status_projeto="Execução" codigo != NULL categoria="Projeto" 
                cliente="$tk_cliente$" $tk_gp$ considerar="Sim"
                | dedup codigo 
                | eval status_custo=if(total_custo_projetado &amp;gt; total_custo_estimado, "Fora do Custo", "Dentro do Custo")
                | search status_custo="$status_value$"
                | `calc_diferenca("total_custo_diferenca", total_custo_projetado, total_custo_estimado)`
                | `format_br(custo_hh_estimado)`
                | `format_br(custo_hh_realizado)`
                | `format_br(custo_hh_diferenca)`
                | `format_br(custo_vg_estimado)`
                | `format_br(custo_vg_realizado)` 
                | `format_br(custo_vg_diferenca)`
                | `format_br(custo_3_estimado)`
                | `format_br(custo_3_realizado)`
                | `format_br(custo_3_diferenca)`
                | `format_br(total_custo_estimado)`
                | `format_br(total_custo_projetado)`
                | `format_br(total_custo_diferenca)`
                | `percent(concluido)`
                | `round(horas_utilizadas, 2)`
                | `percent(horas_utilizadas)`
                | `table_fields(cliente)`
                | fields - "Total Custo Realizado"&amp;lt;/query&amp;gt;
              &amp;lt;earliest&amp;gt;$tk_periodo.earliest$&amp;lt;/earliest&amp;gt;
              &amp;lt;latest&amp;gt;$tk_periodo.latest$&amp;lt;/latest&amp;gt;
            &amp;lt;/search&amp;gt;
            &amp;lt;option name="wrap"&amp;gt;false&amp;lt;/option&amp;gt;
            &amp;lt;option name="rowNumbers"&amp;gt;true&amp;lt;/option&amp;gt;
            &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
            &amp;lt;option name="count"&amp;gt;10&amp;lt;/option&amp;gt;
          &amp;lt;/table&amp;gt;
        &amp;lt;/panel&amp;gt;
      &amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Jun 2016 21:41:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Pie-Chart-How-to-set-token-row-in-contextual-drilldown/m-p/224175#M13911</guid>
      <dc:creator>markux</dc:creator>
      <dc:date>2016-06-21T21:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Pie Chart: How to set token row. in contextual drilldown?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Pie-Chart-How-to-set-token-row-in-contextual-drilldown/m-p/224176#M13912</link>
      <description>&lt;P&gt;Regard's&lt;/P&gt;

&lt;P&gt;I decided to change the approach and use 2 singles dashboards to show pie chart values. &lt;BR /&gt;
Thanks.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/1502iEBAC314A5A6F109F/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 13:14:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Pie-Chart-How-to-set-token-row-in-contextual-drilldown/m-p/224176#M13912</guid>
      <dc:creator>markux</dc:creator>
      <dc:date>2016-06-22T13:14:12Z</dc:date>
    </item>
  </channel>
</rss>

