Dashboards & Visualizations

How to pass a dropdown value in the lookup

aditsss
Motivator

Hi All,

I have one requirement.

I have one dropdown as below:

 

<input type="dropdown" token="OrgName" searchWhenChanged="true">
<label>Org Name</label>
<choice value="accertify">accertify</choice>
<choice value="gcp">gcp</choice>
<choice value="b_marketingforce">b_marketingforce</choice>
<initialValue>gcp</initialValue>
<default>gcp</default>
</input>

Below is my query for the panel where I am passing the drop down value like below:

<query>|inputlookup HealthCheck.csv| where $OrgName$|table Date OrgHealth%</query>

But its not taking the token.

Can someone guide me .How I need to pass the token.

Labels (3)
0 Karma
1 Solution

scelikok
SplunkTrust
SplunkTrust

Hi @aditsss,

You need to use field name to filter lookup values, assuming lookup field name is for OrgName is OrgName try below;

<query>|inputlookup HealthCheck.csv where OrgName="$OrgName$"|table Date OrgHealth%</query>

 

If this reply helps you an upvote is appreciated.

If this reply helps you an upvote and "Accept as Solution" is appreciated.

View solution in original post

scelikok
SplunkTrust
SplunkTrust

Hi @aditsss,

You need to use field name to filter lookup values, assuming lookup field name is for OrgName is OrgName try below;

<query>|inputlookup HealthCheck.csv where OrgName="$OrgName$"|table Date OrgHealth%</query>

 

If this reply helps you an upvote is appreciated.

If this reply helps you an upvote and "Accept as Solution" is appreciated.
Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...