My goal is the following:
How can I go about doing this? This is what I have so far, and it's a mess, as I've tested multiple things, but hopefully it will give some context for what I'm trying to do. I'm missing some step on how to convert the evaluated field to a token that I can use in the base search.
<form>
<label>Azure Billing</label>
<fieldset submitButton="false">
<input type="dropdown" token="billingperiodselected" searchWhenChanged="true">
<label>Billing Period</label>
<fieldForLabel>billingperiod</fieldForLabel>
<fieldForValue>billingperiod</fieldForValue>
<search>
<query>index=test sourcetype=azure:billing | rex field=properties.billingPeriodId (?:\/subscriptions\/mysubid\/providers\/Microsoft\.Billing\/billingPeriods\/)(?<billingperiod>\d+) | rex field=billingperiod (?<year>\d{4})(?<month>\d{2})(?<day>\d{2}) | eval earliestdate=month."/".day."/".year." 00:00:00" | eval earliestdate = strptime('earliestdate', "%m/%d/%Y %H:%M:%S") | stats count by billingperiod,earliestdate | fields *</query>
</search>
</input>
</fieldset>
<search id="basebillingsearch" depends="$earliestdate$">
<query>index=test sourcetype=azure:billing | fields *</query>
<earliest>$earliestdate$</earliest>
<latest>now</latest>
</search>
<row>
<panel>
<chart>
<title>Test</title>
<search base="basebillingsearch">
<query>| timechart sum("properties.pretaxCost") span=1d</query>
</search>
<option name="charting.chart">line</option>
</chart>
</panel>
</row>
</form>
I believe I resolved this by adding a field in the search that is evaluating the time in epoch. I set a token in the field and I can pass that to the base search.