<?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: Connecting drilldown and multiselect/dropdown in Dashboard Studio? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-connect-drilldown-and-multiselect-dropdown-in-dashboard/m-p/617487#M50713</link>
    <description>&lt;P&gt;Which version of splunk are you using?&lt;/P&gt;&lt;P&gt;Please can you share the source of your dashboard?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ITWhisperer_0-1666075979409.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/22063iFFEE732320A4E585/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ITWhisperer_0-1666075979409.png" alt="ITWhisperer_0-1666075979409.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Oct 2022 06:53:21 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-10-18T06:53:21Z</dc:date>
    <item>
      <title>How to connect drilldown and multiselect/dropdown in dashboard studio?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-connect-drilldown-and-multiselect-dropdown-in-dashboard/m-p/617105#M50683</link>
      <description>&lt;P&gt;Hi all&lt;BR /&gt;&lt;BR /&gt;I have a dashboard made with Dashboard Studio with multiple tables and graphs.&lt;BR /&gt;For it to be more interactive I would like to be able to click in my visualizations and update a token that is shared across the dashboard.&lt;BR /&gt;&lt;BR /&gt;I have created a dynamically populated multiselect and drilldowns in my visualizations. The drilldown recognizes the token of the multiselect. When i click, the visualizations update for a second and then reset. The token seems to update and gets immediately reset by the multiselect field which does not update.&lt;BR /&gt;Similar behaviour occurs for the dropdown input.&lt;BR /&gt;&lt;BR /&gt;Does anyone know why it happens and how to fix it?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 13:56:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-connect-drilldown-and-multiselect-dropdown-in-dashboard/m-p/617105#M50683</guid>
      <dc:creator>Iwert</dc:creator>
      <dc:date>2022-10-18T13:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting drilldown and multiselect/dropdown in Dashboard Studio?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-connect-drilldown-and-multiselect-dropdown-in-dashboard/m-p/617484#M50712</link>
      <description>&lt;P&gt;Hello, I am seeing exactly the same behaviour that you have described.&lt;/P&gt;&lt;P&gt;When I click on the visualization, the URL in the address bar changes (I can see the parameter change to the correct value) but it immediately changes back to what it was (default?)&lt;BR /&gt;The content of the dashboard does not even attempt to update.&lt;/P&gt;&lt;P&gt;Using the Multiselect works fine. Changes the chart visualisation.&lt;/P&gt;&lt;P&gt;Can we use the same token for the multiselect as we use in the chart drilldown?? That is what I want to do.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 06:31:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-connect-drilldown-and-multiselect-dropdown-in-dashboard/m-p/617484#M50712</guid>
      <dc:creator>bTonyC</dc:creator>
      <dc:date>2022-10-18T06:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting drilldown and multiselect/dropdown in Dashboard Studio?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-connect-drilldown-and-multiselect-dropdown-in-dashboard/m-p/617487#M50713</link>
      <description>&lt;P&gt;Which version of splunk are you using?&lt;/P&gt;&lt;P&gt;Please can you share the source of your dashboard?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ITWhisperer_0-1666075979409.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/22063iFFEE732320A4E585/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ITWhisperer_0-1666075979409.png" alt="ITWhisperer_0-1666075979409.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 06:53:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-connect-drilldown-and-multiselect-dropdown-in-dashboard/m-p/617487#M50713</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-10-18T06:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting drilldown and multiselect/dropdown in Dashboard Studio?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-connect-drilldown-and-multiselect-dropdown-in-dashboard/m-p/617495#M50714</link>
      <description>&lt;P&gt;I am using Splunk cloud version 9.0.2208.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The source for the multiselect button:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;"input_dhtiWnl4": {
			"options": {
				"items": "&amp;gt;frame(label, value) | prepend(formattedStatics) | objects()",
				"token": "Task_Name_Filter",
				"defaultValue": [
					"*"
				]
			},
			"title": "Daily Task Name Selection",
			"type": "input.multiselect",
			"dataSources": {
				"primary": "ds_tapmtJKf"
			},
			"context": {
				"formattedConfig": {
					"number": {
						"prefix": ""
					}
				},
				"formattedStatics": "&amp;gt;statics | formatByType(formattedConfig)",
				"statics": [
					[
						"All Tasks"
					],
					[
						"*"
					]
				],
				"label": "&amp;gt;primary | seriesByName(\"ShortName\") | renameSeries(\"label\") | formatByType(formattedConfig)",
				"value": "&amp;gt;primary | seriesByName(\"Win_Task_Name\") | renameSeries(\"value\") | formatByType(formattedConfig)"
			}
		},&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The datasource for this input:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;"ds_tapmtJKf": {
			"type": "ds.search",
			"options": {
				"query": "index=PRO-WINTSK-* Win_Task_Name=\"\\\\PRD*\" NOT Win_Task_Name IN (\"\\\\PRD\\\\Xofin.Schedule.Invoicing.Run\", \"\\\\PRD\\\\Xofin.Schedule.Admin.SendDocuments2\", \"\\\\PRD\\\\Xofin.Schedule.Planning.AutoPlanningMed\", \"\\\\PRD\\\\Xofin.Schedule.Planning.SendConvocation\", \"\\\\PRD\\\\Xofin.Schedule.Seed.CreateMedicalFile\", \"\\\\PRD\\\\Xofin.Schedule.Admin.Efficient51\", \"\\\\PRD\\\\Xofin.Schedule.UploadToVaccinet*\")\n    | transaction InstanceId \n    | stats latest_time(duration) as LastRun by Win_Task_Name \n| eval ShortName=replace(Win_Task_Name, \"\\\\\\PRD\\\\\\Xofin\\\\.Schedule\\\\.\",\"\")\n    | sort LastRun desc\n    | fields Win_Task_Name ShortName",
				"queryParameters": {
					"earliest": "$global_time.earliest$",
					"latest": "$global_time.latest$"
				}
			},
			"name": "TaskNames"
		}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the code for a table:&lt;BR /&gt;How should i go a about setting the drilldown when i rename the column i want the value from to something with a space as shown below?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;		"viz_table_1": {
			"type": "splunk.table",
			"options": {
				"count": 25,
				"dataOverlayMode": "none",
				"drilldown": "none",
				"percentagesRow": false,
				"rowNumbers": false,
				"totalsRow": false,
				"wrap": true,
				"headerVisibility": "fixed",
				"columnFormat": {
					"Average Run Tim (s)": {
						"data": "&amp;gt; table | seriesByName(\"Average Run Tim (s)\") | formatByType(Average_Run_Tim__s_ColumnFormatEditorConfig)",
						"width": 180.58333333333334
					},
					"Latest Run Time (s)": {
						"data": "&amp;gt; table | seriesByName(\"Latest Run Time (s)\") | formatByType(Latest_Run_Time__s_ColumnFormatEditorConfig)"
					},
					"Deviation in %": {
						"data": "&amp;gt; table | seriesByName(\"Deviation in %\") | formatByType(Deviation_in__ColumnFormatEditorConfig)",
						"rowColors": "&amp;gt; table | seriesByName(\"Deviation in %\") | rangeValue(Deviation_in__RowColorsEditorConfig)"
					},
					"Win_Task_Name": {
						"width": 436
					},
					"Trend of Run Time": {
						"width": 486.66666666666663
					},
					"# of Runs": {
						"width": 116.77777777777777
					},
					"Latest Start Time": {
						"width": 184.16666666666669
					}
				}
			},
			"dataSources": {
				"primary": "ds_search_1"
			},
			"title": "Task Run Times",
			"context": {
				"Average_Run_Tim__s_ColumnFormatEditorConfig": {
					"number": {
						"thousandSeparated": false,
						"unitPosition": "after",
						"precision": 2,
						"unit": "s"
					}
				},
				"Latest_Run_Time__s_ColumnFormatEditorConfig": {
					"number": {
						"thousandSeparated": false,
						"unitPosition": "after",
						"unit": "s",
						"precision": 2
					}
				},
				"Deviation_in__ColumnFormatEditorConfig": {
					"number": {
						"thousandSeparated": false,
						"unitPosition": "after",
						"unit": "%",
						"precision": 2
					}
				},
				"Deviation_in__RowColorsEditorConfig": [
					{
						"value": "#da3b30",
						"to": -80
					},
					{
						"value": "#a0312e",
						"from": -80,
						"to": -40
					},
					{
						"value": "#252214",
						"from": -40,
						"to": 0
					},
					{
						"value": "#252214",
						"from": 0,
						"to": 40
					},
					{
						"value": "#a0312e",
						"from": 40,
						"to": 80
					},
					{
						"value": "#DA3B30",
						"from": 80
					}
				]
			},
			"description": "Overview of all daily Windows Jobs",
			"eventHandlers": [
				{
					"type": "drilldown.setToken",
					"options": {
						"tokens": [
							{
								"token": "Task_Name_Filter",
								"key": "row.Win_Task_Name.value"
							}
						]
					}
				}
			]
		},&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Datasource for this table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;		"ds_search_1": {
			"type": "ds.search",
			"options": {
				"query": "index=$Env$-WINTSK-* Win_Task_Name=\"\\\\PRD*\" NOT Win_Task_Name IN (\"\\\\PRD\\\\Xofin.Schedule.Invoicing.Run\", \"\\\\PRD\\\\Xofin.Schedule.Admin.SendDocuments2\", \"\\\\PRD\\\\Xofin.Schedule.Planning.AutoPlanningMed\", \"\\\\PRD\\\\Xofin.Schedule.Planning.SendConvocation\", \"\\\\PRD\\\\Xofin.Schedule.Seed.CreateMedicalFile\", \"\\\\PRD\\\\Xofin.Schedule.Admin.Efficient51\", \"\\\\PRD\\\\Xofin.Schedule.UploadToVaccinet*\") Win_Task_Name IN ($Task_Name_Filter|s$)\n| transaction InstanceId \n| stats avg(duration) as AvgDur sparkline(avg(duration)) as DurTrend count as Runs latest_time(duration) as LastRun latest(duration) as LastRunTime by Win_Task_Name\n| eval LastRun=strftime(LastRun, \"%d %B %Y %H:%M\")| eval Devi=((LastRunTime - AvgDur)/AvgDur)*100  \n\n| eval LastRunTime=tostring(LastRunTime, \"duration\")\n| eval AvgDur=tostring(round(AvgDur, 2), \"duration\")\n| sort Devi desc  | rename  Devi as \"Deviation in %\", LastRun as \"Latest Start Time\" LastRunTime as \"Latest Run Time (s)\", AvgDur as \"Average Run Tim (s)\", Runs as \"# of Runs\", DurTrend as \"Trend of Run Time\", Win_Task_Name as \"Task Name\"",
				"queryParameters": {
					"earliest": "$global_time.earliest$",
					"latest": "$global_time.latest$"
				}
			},
			"name": "TaskRunTimes"
		},&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chart using the same token and a drilldown:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;"viz_chart_1": {
			"type": "splunk.line",
			"dataSources": {
				"primary": "ds_search_1_new"
			},
			"title": "Most recent Tasks",
			"options": {
				"yAxisAbbreviation": "auto",
				"y2AxisAbbreviation": "auto",
				"showRoundedY2AxisLabels": false,
				"legendTruncation": "ellipsisStart",
				"showY2MajorGridLines": true,
				"xAxisLabelRotation": 0,
				"xAxisTitleText": "Time",
				"xAxisTitleVisibility": "show",
				"yAxisTitleVisibility": "show",
				"y2AxisTitleVisibility": "show",
				"yAxisScale": "linear",
				"showOverlayY2Axis": 0,
				"y2AxisScale": "inherit",
				"dataValuesDisplay": "all",
				"showSplitSeries": 0,
				"showIndependentYRanges": 0,
				"legendMode": "standard",
				"lineWidth": 2,
				"nullValueDisplay": "connect",
				"yAxisTitleText": "Duration (s)"
			},
			"description": "Duration of the most recent tasks",
			"eventHandlers": [
				{
					"type": "drilldown.setToken",
					"options": {
						"tokens": [
							{
								"token": "Task_Name_Filter",
								"key": "name"
							}
						]
					}
				}
			]
		},&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Datasource for this chart:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;		"ds_search_1_new": {
			"type": "ds.search",
			"options": {
				"query": "index=$Env$-WINTSK-* \n    [ search index=$Env$-WINTSK-* Win_Task_Name=\"\\\\PRD*\" NOT Win_Task_Name IN (\"\\\\PRD\\\\Xofin.Schedule.Invoicing.Run\", \"\\\\PRD\\\\Xofin.Schedule.Admin.SendDocuments2\", \"\\\\PRD\\\\Xofin.Schedule.Planning.AutoPlanningMed\", \"\\\\PRD\\\\Xofin.Schedule.Planning.SendConvocation\", \"\\\\PRD\\\\Xofin.Schedule.Seed.CreateMedicalFile\", \"\\\\PRD\\\\Xofin.Schedule.Admin.Efficient51\", \"\\\\PRD\\\\Xofin.Schedule.UploadToVaccinet*\") Win_Task_Name IN ($Task_Name_Filter|s$) \n    | transaction InstanceId \n    | stats latest_time(duration) as LastRun by Win_Task_Name \n    | sort 5 LastRun desc\n    | fields Win_Task_Name]\n| transaction InstanceId\n| timechart span=1d avg(duration) by Win_Task_Name useother=f",
				"queryParameters": {
					"earliest": "$global_time.earliest$",
					"latest": "$global_time.latest$"
				}
			},
			"name": "RecentTaskGraph"
		},&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 07:58:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-connect-drilldown-and-multiselect-dropdown-in-dashboard/m-p/617495#M50714</guid>
      <dc:creator>Iwert</dc:creator>
      <dc:date>2022-10-18T07:58:57Z</dc:date>
    </item>
  </channel>
</rss>

