<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>display  yesterdays values of pie chart on default</title><link>https://community.appian.com/discussions/f/administration/14640/display-yesterdays-values-of-pie-chart-on-default</link><description>Hello there, 
 I have requirement where i display the no.of cases approved/denied etc scenarios in pie chart. 
 It has some date(from-to)filters; in which when user loads this pie chart for first time in a day, i should display all the cases of yesterdays</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: display  yesterdays values of pie chart on default</title><link>https://community.appian.com/thread/65644?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2019 13:32:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:25e770e6-d585-4514-b16c-67f45e5d6d07</guid><dc:creator>Malleswari Talakola</dc:creator><description>&lt;p&gt;Hello Stewart,&lt;/p&gt;
&lt;p&gt;Thank you so much for the response.It helped me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: display  yesterdays values of pie chart on default</title><link>https://community.appian.com/thread/65639?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2019 12:47:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e3408afc-9e6b-45f7-adcb-2140ebd066b1</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Assuming I understand correctly that you want the pie chart to show all of yesterday&amp;#39;s values when the chart is first loaded then you need to default the value of the local!fromDateAndTime to be midnight of the day before today. Assuming this variable is indeed in dateTime format then you need to generate the value using the fn!todatetime(), passing this function yesterday&amp;#39;s date and the value for midnight:&lt;/p&gt;
&lt;p&gt;fn!todatetime(fn!concat(fn!today()-1, &amp;quot; &amp;quot;, fn!time(0,0,0,0)))&lt;/p&gt;
&lt;p&gt;Then if you want the value of local!toDateAndTime to be midnight of today, then it&amp;#39;s identical to the above without subtracting 1 from fn!today().&lt;/p&gt;
&lt;p&gt;Does that help?&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Stewart&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>