I add a global variable like below
`
globalvariable
<query>
| makeresults | eval var="D:\ALM-Splunk-Delivery\Reports\Project_Area_1\CRS_Requirements\data.csv"
<preview>
<set token="source1">$result.var$</set>
</preview>
`
I want to pass $source1$ as variable in report as below
<single>
<title>count with date</title>
<search>
<query> index="newindex" source="$source1$" |stats count</query>
</search>
</single>