You can run a search to calculate previous week date one of the ways would be through makeresults and using relative_time command.
Then you display the same using HTML panel with formatting of your choice.
<search>
<query>| makeresults
| eval prevWeekDate=strftime(relative_time(now(),"-7d"),"%Y/%m/%d")
| table prevWeekDate</query>
<sampleRatio>1</sampleRatio>
<preview>
<set token="tok_Prev_Week_Date">$result.prevWeekDate$</set>
</preview>
</search>
<row>
<panel>
<html>
<div>
<p style="color:blue;text-align:right;font-size:150%">$tok_Prev_Week_Date$
</p>
</div>
</html>
</panel>
</row>
You can run a search to calculate previous week date one of the ways would be through makeresults and using relative_time command.
Then you display the same using HTML panel with formatting of your choice.
<search>
<query>| makeresults
| eval prevWeekDate=strftime(relative_time(now(),"-7d"),"%Y/%m/%d")
| table prevWeekDate</query>
<sampleRatio>1</sampleRatio>
<preview>
<set token="tok_Prev_Week_Date">$result.prevWeekDate$</set>
</preview>
</search>
<row>
<panel>
<html>
<div>
<p style="color:blue;text-align:right;font-size:150%">$tok_Prev_Week_Date$
</p>
</div>
</html>
</panel>
</row>
Thanks Niketnilay..so we cannot have dynamic title, but need to include html tags.
@chintan_shah... You can print this in Title also. I just used html as an example.
<panel>
<title>Data from - $tok_Prev_Week_Date$ </title>