reporting services - SSRS - Display current grouping field values in report page header -


i'm using sql server data tools 2012 (visual studio 2010) , have multi-tab report page break on each combination of salesterritory , producttype.

i can label worksheet tabs of resulting downloaded excel spreadsheet adding group-level pagename property expression in properties window concatenates 2 current grouping criteria values:

=lookup(fields!salesregionid.value, fields!salesregionid.value,           fields!salesregioncode.value, "salesregion") + " " +  lookup(fields!producttypeid.value, fields!producttypeid.value,           fields!producttypename.value, "producttype") 

what i'd add same string page header of each report page. can't add above expression in text box since "field references outside of data region must contained within aggregate functions specify dataset scope."

so, how scope references in order display same string on both current tab , page header of each worksheet?

it turns out pagename property assigned @ group level available global field. if add text box page header , open expression dialog, find field in built-in fields category called "pagename". double-clicking add following expression:

"=globals!pagename" 

that it!


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -