How to show two data set result together horizontally in BIP report - dataset

I have two data set from different fact tables but in report I have to show both the result set together.
If I am using both the data sets it is appending down after the first dataset table.
Please let me know how can I show both the tables together horizontally.
Report
RTF
Output

Nested Tables.
Make a new table in your template; 1 row, two columns.
Nest/put one of your tables in the first columns of the new table. Put your other table in the second column of the new table.
If you want, you can adjust the new tables cell margins to different values, including 0, to reduce the space around the nested tables.

Related

How can I add a prefix to the column names of a join table in T-SQL?

I am joining two tables in T-SQL which have the same column names and I want to distinguish them not only via a reference but also I want to distinguish them in the resulting joined table.
I want to add a prefix for all the columns coming from the original or the joining table, e.g. Table1-Col1, Table2-Col1, etc.
Is there a quick way to do that so that I won't have to repeat all the columns one by one in the query?
RE: "Is there a quick way to do that so that I won't have to repeat all the columns one by one in the query?"
Not sure how quick you will find the following. I do this all the time with wide tables. Break even vs doing them one at a time is about 6 or 8 columns for me. Your mileage may vary.
Drag and drop the "Columns" tab under the table in ObjectExplorer into an SSMS query window. This gives a comma separated list.
Copy the comma separated list into Excel.
Use Data - Text to columns. Converts comma delimited string to a set of columns in spreadsheet.
Copy columns to clipboard.
Paste Special with Transpose selected
Use CONCAT in a cell in the next column over to build a formula that creates column strings. For example,
=CONCAT(", ", A17, " as Table1-", A17)
Copy the formula to all columns
Copy the columns back to SSMS. You will have an extra comma that needs to be eleted at this point.
As noted, I use Excel for these types of conversions regularly.

How to manipulate dataset to get information from different tables?

Currently my data is set up as a union of two tables. The red rows are Table 1 and the blue rows are Table 2. I am doing my union in SQL Server and am connecting this into Tableau. I am using Excel right now to depict what I am seeing (left pivot table) more easily and what I want to see (right made-up pivot table).
The current pivot table is showing when filtered on a particular Plant/Project/Product, those are the components that go into the Product and those are the months in which the Products are due to the customer. The values in the bottom row are the quantity of the Product that is due to the customer. For example- in June, a quantity of 1 of the 150-100020-1000 product is due to the customer. The quantities are showing up under a null component because that field isn’t in Table 2, as you can see in the blue rows.
I want those bottom row values to appear under literally any one of those components that are listed. In this case, it’s only showing one set of Plant/Project/Product, but I would want the formula/code to pick up on that too when it’s evaluating what to output. In the example on the right side made-up pivot table, I have the quantities showing up under the component #100, but it can be under any of them as long as the Plant/Project/Product is equal in both tables. I also don't want the blank/null dates from Table 1 to show up, but they are tied to the components so I can't filter them out easily.
I've tried several types of joins and temporarily tables to get this working and keep coming up blank. How can I set up my dataset to get the view I want to see in Tableau?
Dataset and Current View + View I Want
Your problem is you don't have a Component against a Qty. Hence for what you want somehow you need to create a Component. Perhaps this is possible using a FIXED calc, which would create this field across all records. If the value of Component doesn't matter create this calculation:
{MIN([Component])}
This should put 100 against each record.
If you also need to keep the existing Component value, when it exists, try a formula such as:
IFNULL([Component],{MIN([Component])})
Note I haven't tested any of this.

SQL Report Builder Column Group Merge Columns

I have a basic report with a one Dataset and one column group.
When I run the report, the column groups shows all the columns I want to see as expected. However, some of the columns, I need to be merged.
For example, I have these columns that all show up, but need to merge to a single column Visa, then report shows the transaction amounts.
Visa Sign, Visa PIN, Visa Tap
How would I merge these columns and rename the main column to just Visa?
My first approach was the modify the dataset query and change anything the payment type to "Visa", but it turns out I can't use update statements since the raw data is still needed for another report.
Next, I tried using Lookups to find anything with "Visa%" and display the the data, but I still can't get the other columns merged to 1.
Any ideas would be great!

get columns from multiple tables from multiples entities in Silverlight

I would like to create a datagrid which would contains 5 columns.
Each column from a different table and each table is from a different entity.
How should i do that in silverlight ?
I'm actually able to get the data from 1 table and display it in the datagrid but combining the entities seems complicated.
Thank you.
Create Single Store Procedure And Take N Number of Columns from N number of Tables .

How can one dynamically modify row and column definitions of a WPF grid?

I have two dimensional data with varying number of rows and columns and must display it to the user for editing. The format of the data itself is essentially described by a list of row and column descriptors with a header text for each row or column.
I derived a control from Grid that has two properties for the row and column descriptors and builds the gird rows and columns based on that information. It also subscribes list change events of the two descriptor collection to update itself if the user dynamically adds or removes rows or columns.
And here the problem occurs - when I try to modify the row or column definitions of the gird I get an exception telling that the collection is read-only. So I assume it is not possible to modify the definition after the grid has been created and shown once. Any ideas?
And just in the case it matters - everything is data bound. There is a (dynamic) collection of tables with each table containing its own (dynamic) row and column definitions and the data entered for each cell.
I did a quick test and I could add rows and columns without problems to a Grid at runtime through code, using the RowDefinitions and ColumnDefinitions collections. I don't think that bindings have something to do with the problem either.
If on the other hand you meant DataGrid, yes, that changes things quite a bit.

Resources