how to bing the grouped items to a non group section of a tablix - sql

I need to have a graph the same size as tablix. Since i cant merge the cells , how can i bring the grouped items to the left ?
i have this
Before
and i want it to look like this:
After
But since the period is a group i cant merge the cells in the bottom, So is there a way to bring period colums to the left.
Thanks

If your chart and table use the same dataset (and why wouldn;t it if it showing the same data), you can put them in a list that will grow with the column grouping of your current table.
INSERT a new List. A list is really just a table.
Add an extra row to the list in the same group.
Set the Grouping on the list to Group By 1 (the number one). This will group everything to one line.
Set the dataset to the same dataset as your chart and table.
Set the list's top cell's size to match your table.
Put the table in the top row.
Set the bottom cell to the height of the chart.
Put the chart in the bottom.
The column grouping in the top will stretch out the list and the chart will go with it.

Related

How to show number of columns based on slicer in power BI?

I have one scenerio which i need answer for.
Suppose i have a table with 10 columns.
Is it possible to show columns based on slicer.
Like if i select 3 from slicer then it should show only first 3 columns.
Similarly if i select 5 in slicer then the visual should show only first 5 columns.
I really need a solution for this problem. Let me know if any more details required. Thank you
Found an article regarding this please go through with this.
https://community.powerbi.com/t5/Community-Blog/Dynamic-Hideable-Columns-in-Power-BI-Table-Visual/ba-p/662808
If you want to hide/show column based on their name from slicer then please apply below steps:
Go to Transform Data & Select that column which you always want in your table.
Do Unpivoted other columns.
Use a matrix:
Drag static column in ROW of matrix.
Drag Attribute column in Columns of matrix.
Drag Values column in Values of matrix.
4.Drag a slicer & put attribute in Slicers.
Now you can choose column name from slicer which you want to add in your matrix.

Transpose Columns in Order using Excel VBA

I have an extremely large amount of data needs to be transposed in order using the example on the image below. The left side of the image is how the information comes from the report, and the right side is what I need it to look like.
I have tried to use the Transpose paste special but it results in 3000+ columns of information. I have also tried pivot tables but I get the information out of order.
The three pieces of "Info" are per employee. As it stands now, the lines are vertically but in our end result we should have three rows per employee.
Transpose Left Original Data Right Outcome Needed
you can achieve this by the below formula
F1 = INDEX($A$1:$A$3,1+QUOTIENT(ROW()-ROW($F$1),3))
G1 = VLOOKUP(F1,$A$1:$D$3,2+MOD(ROW()-ROW($F$1),3),FALSE)
So if you have 3000 lines of data, the formula should be dragged to 9000 rows.

SSRS Displaying tablix values on the column chart

I have a tablix that shows grouping of detail rows.
This is calculated based on the Days_R field.I have enabled hide on detail rows.Expression is using the calculation to display 5 grouped rows based on the number of days in DAYS_R field.
I have to show tablix values on the chart. It should display like 5 series. In category axis, I have copied the same expression in the tablix to the chart category axis. It displays like shown below.Could anyone please help me how to plot the exact 5 series in SSRS column chart?
`Added part of sample data, it has more rows and more columns.I have to group by DAY_R field based on the expression in the comment and show the count of PO_ID on Y axis.

Display Value from PowerPivot FieldList

I want to show a value in a cell of Excel which is coming from PowerPivot Field List.
How to show its value in Cell?
You have a couple of options to show a value from a Power Pivot model in a cell in Excel.
1) Create a pivot table with only the values for the field that you want. You can do this by opening your Power Pivot model and clicking Pivot Table on the home tab. Locate the field you want and put it in the Rows. You can remove the grand total by going to the design tab in the PivotTable Tools group and choosing Grand Totals -> Off for Rows and Columns. You can type your own heading in the row that says row labels.
2) Use a slicer. Add a pivot table, then click Slicer on the Insert tab. Select the field you want to show and click OK. You can delete the rest of the pivot table if you don't need it.
3) Use cube functions. You can get a list of values for a certain dimension by creating a set and then cuberanked members. For example, I have a Power Pivot model with a field called cities. My cube set is in cell G1.
=CUBESET("ThisWorkbookDataModel","[Location].[City].[All].children", "Cities")
In the cells in column G below G1, I can copy the following cuberankedmember formula.
=IFERROR(CUBERANKEDMEMBER("ThisWorkbookDataModel",$G$1,ROW()-1),"")
This gets the list of members from the set in cell G1 and lists out the member in order. so you need to copy that to as many cells as there are values. I used ROW()-1 to create an autonumbered list that starts with 1. So in cell G4, I'm saying "get me the 3rd city. Since the number of members can change, I added the IFERROR. Normally, if you ask it for more members than are present, it will return #N/A. IfError catches that error and returns a blank string instead (this is purely for cosmetic purposes and can be left out).
You can see the results of the 3 options below.

table get the cell from the row

I have one table with 3 rows and 3 columns. Now I want to add 2 row's 2nd columns cell's control. That means whether that is text or combox in the cell. How do I get the 2nd row's 2nd column and remove the compoenent dynamically in SWT JFace?
Do you use a TableViewer?
The SWT-way of getting to the item is indexed first by row, than by column.
Getting the text of the third column in the second row is done like this:
table.getItem(1).getText(2);
To display custom-controls, like a combobox you will have to either paint it manually or use SWT's TableEditor.
Also check out this tutorial: http://www.eclipse.org/articles/Article-Table-viewer/table_viewer.html