Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

Access current grouping fields in report page header

$
0
0
I'm using SQL Server Data Tools 2012 (Visual Studio 2010) and have a multi-tab report that does a page break on each combination of SalesTerritory and ProductType.

I can label the worksheet tabs of the resulting downloaded Excel spreadsheet by adding a group-level PageName property expression in the Properties window that concatenates the two current grouping criteria values:

=Lookup(Fields!SalesRegionID.Value, Fields!SalesRegionID.Value,          Fields!SalesRegionCode.Value, "SP_SalesRegion") + " " + Lookup(Fields!ProductTypeID.Value, Fields!ProductTypeID.Value,          Fields!ProductTypeName.Value, "SP_ProductType")



What I'd like to do now is add the same string to the page header of each report page. I can't simply add the above expression in a text box, since it doesn't appear to understand the current grouping context of the report body. How do I show the current tab label on the page header of each worksheet?

- Mark Z.



Viewing all articles
Browse latest Browse all 10045

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>