# Range Functions

<table><thead><tr><th width="230">NAME</th><th width="288">SYNTAX</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><a href="range-functions/range">Range</a></td><td>.Range(start_index,end_index)- > number</td><td>Returns the values between the specified start and end periods.</td></tr><tr><td><a href="range-functions/lastnperiods">LastNPeriods</a></td><td>.LastNPeriods(n)- > number</td><td>Returns the values of the last 'n' periods</td></tr><tr><td><a href="range-functions/get">Get</a></td><td>.Get(period_index)- > number</td><td>Returns the values of the specified period index</td></tr><tr><td><a href="range-functions/foreach">ForEach</a></td><td>ForEach(Array,Iterator)</td><td>To apply the same operation for multiple nodes.</td></tr><tr><td><a href="range-functions/findbytitle">findByTitle</a></td><td>findByTitle(searchString) - > [?]</td><td>Tagging/Grouping function. Returns the value of the nodes which has the specified title</td></tr><tr><td><a href="range-functions/getcurrentrange">GETCURRENTRANGE</a></td><td>DS.(SERIES).GETCURRENTRANGE()</td><td>Returns the current range values based on the period selection.</td></tr><tr><td><a href="range-functions/getrowvalue">GETROWVALUE</a></td><td>DS.(SERIES).GETROWVALUE(sourceKey: string) - > [number]</td><td>Value of source key row</td></tr><tr><td><a href="range-functions/this_source_key">THIS_SOURCE_KEY</a></td><td>DS.(SERIES).THIS_SOURCE_KEY</td><td>Returns the value of the mentioned source key.</td></tr><tr><td><a href="range-functions/prior_series_period_lookup">PRIOR_SERIES_PERIOD_LOOKUP </a></td><td><p>PRIOR_SERIES_PERIOD_LOOKUP</p><p>(seriesOffset, periodIndex, initialValue) - > [number]</p></td><td>Returns the specified period's value.</td></tr><tr><td><a href="range-functions/period_lookup">PERIOD_LOOKUP</a></td><td>PERIOD_LOOKUP(offset, initialValue) - > [number]</td><td>Returns the specified series's value.</td></tr></tbody></table>
