How to Repeat table in one report side - reporting

I have a simple report (1 Table with 2 small columns)
the report works fine but now I'm trying to repeat the table on the same page but I can't find an example on how to do this.
I also crosses only one question about this problem, so maybe I miss something obviously on how to solve this.
Could somebody please enlight me?

You can 'play' with (a single) Tablix details to simulate table repetition.
For example you can create 3 rows of details like this:
row 1: header
row 2: value
row 3: footer space
To obtain a result like this:
You can also use a different layout, for example:
row 1: label/value for column 1
row 2: label/value for column 2
row 3: footer space
If you have a very small table you can also set report columns to fill horizontal space.
This is the result (simulating table repetitions but you can also use a simple Tablix with standard header/details):
This is the result if you use columns and a simple Tablix with standard header/details:

Related

Power Query Replace null values with values from another column

I am working with data imported from a pdf file. There is an extra column in the Power Query import (Data.Column7), containing data that belongs in the adjacent columns on either side (Data.Column6 and Data.Column8). Columns 6 and 8 have null values in the cells where the data was pushed into Column 7. I would like to replace the null values in Columns 6 and 8 with the correct data from Column 7, leaving all other values Columns 6 and 8 as is.
After looking at the post here:
Power Query / Power BI - replacing null values with value from another column
and watching this video:
https://www.youtube.com/watch?v=ikzeQgdKA0Q
I tried the following formula:
= Table.ReplaceValue(#"Expanded Data",null, each _[Data.Column7] ,Replacer.ReplaceText,{"Data.Column6","Data.Column8"})
(Note, "Expanded Data" is the last step before this Replace Value step.)
I am not getting any kind of syntax error, but the Replace Value step isn't doing anything at all. My null values in Columns 6 and 8 have not been replaced with the correct data from Column 7.
Any insight into how to achieve replacement would be greatly appreciated. Thank you.
(I should mention, I am a new Power Query user, so please be detailed and assume I know nothing!)
I'm sure there must be some way to do this with the ReplaceValue function, but I think it might be easier to do the following:
1: Create a new column with definition NewData6= if[Data.Column6]=null then [Data.Column7] else [Data.Column6]
2: Do the same thing for 8 : NewData8= if[Data.Column8]=null then [Data.Column7] else [Data.Column8]
3: Delete Data.Column6/7/8
4: Rename the newly made columns if neccesary.
You can do these steps either in the advanced editor, or just use the create custom column button in the add column tab.
If the columns are of the text data type, then it might have empty strings instead of actual nulls.
Try replacing null with "" in your formula.

PL/SQL UTL_FILE package read from csv and load values into a table

If I have a CSV file like this:
How can I read this with UTL_FILE package and load the values into one table which have columns: ItemIdentifier, SoldOnWeb, SoldInTheShop?
From my point of view, as CSV files can be edited with MS Excel, I'd suggest you to rearrange the file and uniform it. The way it is now, it contains different headings and - to make it worse - they don't "match" (the same column contains itemidentifier and soldintheshop values; the same goes for the next column).
Add yet another column which would explain what the "sold..." column represents. Finally, you'd have something like this:
itemidentifier amount location
-------------- ------ -------------
1 10 soldOnWeb
2 7 soldOnWeb
3 5 soldOnweb
1 7 soldInTheShop
2 3 soldInTheShop
Doing so, it is a simple task to insert every value where it belongs.
Otherwise, can it be done in PL/SQL? Probably. Will it be difficult? Probably, as you have to "remember" what you're selecting in each row and - according to that - insert values into appropriate columns in the table.
You know how it goes ... garbage in, garbage out.

Divide second row with first row value in the same column

I have a table with column Account.
Return 2 value :
4
2
I tried to divide 2/4 using expression
=Fields!Accounts.Value/Previous(Fields!Accounts.Value)
Something is not work here. Please point out what was wrong with it. Many thanks

How to increase number of displayed rows in a tabular form using apex 5.0

Currently my tabular form displays 10 rows at a time. How do I increase the number of rows to be displayed, say from the current default number of 10 to something like 20? Is there a place somewhere in the page attribute where you can set the number of rows to be displayed, as in the case of an interactive report?
Region -> Attributes -> Layout -> Number of Rows
In scripting window you will find a drop-down with row label, select it and choose the number of rows you want to display.
If you are facing this problem for an 11g Oracle SQL Developer:
More than 10 rows available. Increase rows selector to view more rows.
Then you can directly solve this from drop down menu of rows situated beside Autocommit checkmark from SQL Workshop:
select 1000000 to show more rows :
Run those queries again!
Final Result having 21 rows in result :
This might have solve your problem!
You can call function
javascript:apex.widget.tabular.addRow();
N number of times per click... For example,
Generate 2 rows, call
javascript:apex.widget.tabular.addRow();
javascript:apex.widget.tabular.addRow();
Generate 4 rows, call
javascript:apex.widget.tabular.addRow();
javascript:apex.widget.tabular.addRow();
javascript:apex.widget.tabular.addRow();
javascript:apex.widget.tabular.addRow();

How to Load CSV file into Apex 5 for particular columns?

I have table with three columns x (Foreign Key),y(Primary Key),z and also csv file with only two columns data y,z as shown in images http://imgur.com/a/12ENZ (Please copy and paste link)which has to uploaded into table.Here I fill x column for all the rows with constant value ‘20’.i have used Data loading wizard to do this in Apex 5.
Problem:
In the first step I loaded this table and then In next step you can see that I have to do column mapping .Here I get only two columns y(Mileage),z(Ratio) because I have only two columns in the excel and first column x i want to map with null values here(Problem 1).
In the next step I have added process in the Datavalidation to update column x to fill that constant value as shown in images. But you could see p_attr_number =1 makes first column to be updated with 20 value.Here I need my first column x to be filled with constant value 20(Problem 2).Please Give me some suggestions on this for solving this problems.
for problem 1 you can choose x column as nullable yes by editing your colum in object browser -> your table -> modify column -> nullabe field to NULL (do not reguire a value) so when you upload data it will not fill third column if you map 2 columns (althıugh you do not see the column name in wizards)
for problem 2 i am assuming that all fields in your database has data so you you can add a page process for giving new values to the uploaded data which has null x columns
1 go to 4th page 'Data Load Results' which created by data wizard
2 click add a page process button
3 choose pl/sql
4 give a name and choose on submit - after computations and validations
5 enter an update command which suits your needs as below
update your_table_name
set
x=20
where x is null;
6 write your success messages
7 choose finish button in option "when button presses"
8 create process
9 add a Branch button in Branches
10 give a name click next
11 enter the page you want to go after data load
12 choose finish button in option "when button presses"
13 go to finish button and choose submit in Action When Button Clicked -> action
by adding this process and branch
1st system will insert data to table
2nd it will update all the null x values to the static values in your table
3rd it will return to the page you want

Resources