How can I put a "footer" inside a rectangle, that is always at the bottom of the rectangle, but where the other content of the rectangle (a tablix) pushes down the footer when that content becomes too big for the rectangle?
simple representation:
-------------------
| tablix row 1 |
| tablix row 2 |
| |
| |
| |
| |
| |
| |
| |
| footer |
-------------------
-------------------
| tablix row 1 |
| tablix row 2 |
| tablix row 3 |
| tablix row 4 |
| tablix row 5 |
| tablix row 6 |
| tablix row 7 |
| tablix row 8 |
| |
| footer |
-------------------
-------------------
| tablix row 1 |
| tablix row 2 |
| tablix row 3 |
| tablix row 4 |
| tablix row 5 |
| tablix row 6 |
| tablix row 7 |
| tablix row 8 |
| tablix row 9 |
| tablix row 10 |
| tablix row 11 |
| tablix row 12 |
| tablix row 13 |
| footer |
-------------------
Related
I am doing a task for data analysis that user will have a hearing test,then the algorithm will generate a EQ setting(earphone) like:
| id | sb1 | sb2 | sb3 | act |
|--- | --- | --- | --- | ---- |
| 1 | row | row | row | test |
| 1 | row | row | row | modify |
| 1 | row | row | row | modify |
| 1 | row | row | row | test |
| 1 | row | row | row | modify |
| 1 | row | row | row | test |
| 2 | row | row | row | test |
| 2 | row | row | row | test |
| 2 | row | row | row | modify |
| 2 | row | row | row | modify |
sb1~3 are the EQsetting,and act is user's action
{'test':"hearing test",'modify':"edit the EQsetting from the origin EQsetting "},
and I want to make the test EQsetting and modify EQsetting have less loss,
but the data have many times with test and modify for an user,
how can I distinguish the independent variable and dependent variable?
I have a table where two columns are comma separated id's. For example
+--------+-------------+------------+
| name | country_ids | region_ids |
+--------+-------------+------------+
| item 1 | 1,2,3 | 2,4 |
+--------+-------------+------------+
| item 2 | 2,3 | 1,4 |
+--------+-------------+------------+
I would like to run a mysql query so the comma separated values in both columns are split into multiple rows. So in the above example, the results would be
name | country_id | region_id |
+--------+------------+-----------+
item 1 | 1 | 2 |
item 1 | 1 | 4 |
item 1 | 2 | 2 |
item 1 | 2 | 4 |
item 1 | 3 | 2 |
item 1 | 3 | 4 |
item 2 | 2 | 1 |
item 2 | 2 | 4 |
item 2 | 3 | 1 |
item 2 | 3 | 4 |
Is this possible in a mysql statement - even if I have to create a stored procedure on the fly?
THanks
I got a problem with a report.
I will draw a line on the last record's page like in the example below.
In the report I have:
Header section (with the company info)
Page header section (with the titles column)
Detail section (for each record)
Page footer (for the page number)
Report footer (totals about the report)
I need this "break" line because I put some lines in the detail section for have a table like report.
Page1:
_______________________
| Report Header |
| Goes Here |
|-----------------------|
| Page Header |
|-----------------------|
| Record1 |
| |
| Record2 |
| |
| Record3 |
| |
| Record4 |
| |
| Record5 |
| |
| Record6 |
|-----------------------| <- Line
| |
| |
| Page Footer |
|_______________________|
Page2:
_______________________
|-----------------------|
| Page Header |
|-----------------------|
| Record7 |
| |
| Record8 |
| |
| Record9 |
| |
| Record10 |
| |
| Record11 |
| |
| Record12 |
| |
| Record13 |
| |
| Record14 |
|-----------------------| <- Line
| Page Footer |
|_______________________|
Page3:
_______________________
|-----------------------|
| Page Header |
|-----------------------|
| Record15 |
| |
| Record16 |
|-----------------------| <- Line
| |
| Report footer |
| |
| Info1 |
| Info2 |
| Info3 |
| |
| |
| |
| |
| |
| |
| Page Footer |
|_______________________|
I tried to add some textboxes in the report's detail section with the running sum but I can't figure out how to know it's the last record.
Somebody can help me? Thank you
Then there is no need for VBA. Just try to detect wich section of the report shows what you want to do. Detail section won't work because it shows for every record.so step up 1 level. According to your info, You have no grouped your data in any way, so, I would bet for Page Footer. Draw a line there, then go to Preliminar View, and check it.
I have a table with several results from different years. My first year is my decision year (all the years after are according the first year). And my first year column is in a descending order by the count of the result in it.
This is an example of how my table looks like.
+----+------+-------+------+------+
| ID | Year | ID2 |Year1 |Year2 |
+----+------+-------+------+------+
| 1 | 1 | 12 |B | |
| 1 | 1 | 13 |B | |
| 1 | 1 | 22 |A | |
| 1 | 2 | 12 | |B |
| 1 | 2 | 15 | |A |
| 1 | 2 | 17 | |C |
| 1 | 2 | 25 | |C |
| 1 | 2 | 30 | |D |
+----+------+-------+------+------+
The columns Year1 and Year2 need to be changed to numbers. The first result will be 1 (so, B will turn to 1) and the second will be 2 (so, A will turn to 2) and so on.
The column Year1 is the main column which will decide what will be in column Year2. Which means, the results in column Year2 will get the results from column Year1 (B=1, A=2) but once a new result is introduced the result will increment by 1 (C will be 3 and D will be 4)
So the table should look like this.
+----+------+-------+------+------+
| ID | Year | ID2 |Year1 |Year2 |
+----+------+-------+------+------+
| 1 | 1 | 12 |1 | |
| 1 | 1 | 13 |1 | |
| 1 | 1 | 22 |2 | |
| 1 | 2 | 12 | |1 |
| 1 | 2 | 15 | |2 |
| 1 | 2 | 17 | |3 |
| 1 | 2 | 25 | |3 |
| 1 | 2 | 30 | |4 |
+----+------+-------+------+------+
Plus, the columns go until Year10 and columns ID,Year and ID2 create a key.
Any ideas will help at this point. Thank you for your help!
A rough way to do it would be to do each year data in separate temp tables.
Then create another set of temp tables to determine the numbering of letter using something like row_number().
Update your letters with the numbers.
And finally union them together.
Is it possible to do this kind of layout in SSRS?
2012/11/01
-----------------------------
| Order # | Product | Qty |
-----------------------------
| | Mouse | 3 |
| 1 | Keyboard | 2 |
| | CPU | 5 |
-----------------------------
| | Mouse | 1 |
| 2 | Keyboard | 7 |
| | Lan Cable | 7 |
-----------------------------
2012/11/02
-----------------------------
| Order # | Product | Qty |
-----------------------------
| | Mouse | 2 |
| | Keyboard | 8 |
| 3 | Memory | 4 |
| | CPU | 2 |
| | Battery | 1 |
-----------------------------
I tried finding a property that could do that, tried dragging the field on top too but to no avail :-)
Yes you can do this, it's easiest if you nest two tablixes (a table inside a list). Make a list that groups on the date field. Inside the list place the table that groups rows on the order id. This would look like this:
----
2012/11/01 |
----------------------------- |
| Order # | Product | Qty | |
----------------------------- |
| | Mouse | 3 | |
| 1 | Keyboard | 2 | | --- List item 1
| | CPU | 5 | |
----------------------------- |
| | Mouse | 1 | |
| 2 | Keyboard | 7 | |
| | Lan Cable | 7 | |
----------------------------- |
----
----
2012/11/02 |
----------------------------- |
| Order # | Product | Qty | |
----------------------------- |
| | Mouse | 2 | | --- List item 2
| | Keyboard | 8 | |
| 3 | Memory | 4 | |
| | CPU | 2 | |
| | Battery | 1 | |
----------------------------- |
----
Alternatively you can make one big table:
group rows on the date
below that, group rows on the order id
create a group header for the topmost group, merge the cells in the header, and display the date there
In this approach I'm not 100% sure if you can easily repeat the headers with each item in the date-group.