Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Overwriting Dimensions Binding Measure in Crosstab
SoccerMZG
<p>I am wondering how to overwrite a crosstab in such a way that a measure is only bound to one dimension even though there are several. I want the crosstab to organize the players and positions as it appears, but I need to see all of the minutes played by each player on each row(when it would not normally show up it will be grey).</p>
<p> </p>
<p>There is an attached xls file (
Find more posts tagged with
Comments
Clement Wong
<p>Will need some more info… Do we have the sample source data (not the left side crosstab), but the actual data set that is being returned? Also, what is the data source origin – database, CSV, etc…? The reason is that there could other alternatives to the solution based on these answers.<br><br><br>
What version of BIRT is being used? Open source, or commercial?<br><br><br>
Do we have the .rptdesign that produces the left side?<br><br><br>
Would that crosstab be the best way to visualize the # of minutes of each player played per game? Option 1: Size of dots could represent minutes, and the color could reflect (% of minutes play out of total minutes per game). Option 2: Spark bar, with one color for the amount of time played, and a grey for those duplicates?</p>
SoccerMZG
<p>Hi Clement,<br><br>
The data here is just an example of what I am trying to achieve. Here is a tabular version of the data (
SoccerMZG
<p>Sorry, I do not think I attached the most up to date .xlsx file. Here it is:
Clement Wong
<p>Mark,</p>
<p> </p>
<p>I changed the expression of the "CrosstabPosition" to:</p>
<p> </p>
<p style="margin-left:40px;"><span style="font-family:'courier new', courier, monospace;">reportContext.evaluate("dimension");</span></p>
<p> </p>
<p>The alternative is to save the [Position1] in the onCreate event, and use that variable in the expression of Crosstab Position.</p>
<p> </p>
<p>The attached .rptdesign appears to be the output you are expecting using the first option. Don't forget to change the Data Source location in my .rptdesign if you run the attached.</p>