I have an 2005 SSRS report that contains two tablix controls; and the report itself has two columns. What I'd like to do is force the tablix(s) to move it's data into the second column of the report; but I don't believe this is possible. For an example, my report in design view appears such as:
Col A Col B Col C | COLUMN 2
x x x |
And I am grouping on Column A, which has another grouping not shown named "ColumnGrouping" - which I want to force to group into the second column on the SSRS report. Is this possible?
Apologies in advance if the question needs further clarification - I can expound as need be.
So for those curious, it depends on the spacing of the columns - SSRS will do the math for you and if it decides that the width of the columns are greater than the column span, it will spill over into the next row.
Related
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.
I am trying to lookup values from Table 1 to Table 2 based on Col1 in Table 1.
The catch is that Table 1 has duplicate values (for example, A is repeated 3 times) but I don't want to duplicate the returned value from Table 2.
How can this be done through either excel or sql (e.g. LEFT JOIN)?
What SQL are you using? Are you familiar with CTE and partition?
Have a look here: https://social.msdn.microsoft.com/Forums/sqlserver/en-US/597b876e-eb00-4013-a613-97c377408668/rownumber-and-cte?forum=transactsql
and here: (answer and 2nd comment): Select the first instance of a record
You can use those ideas to create another field that tells you whether the row is the first, 2nd , 3rd etc occurrence of Col1. Eg you'd have something like
1 B Red 150
2 B Red 150
and you can then update col3 to be zero where this new field is not 1.
EDIT: since you asked about Excel: in Excel, sort by whatever criteria you may need (col 1 first, of course). Let's say that Col1 starts (excluding the heading) in cell C2. Set cell B2 =1. Then write this formula in cell B3:
=IF(C3=C2,B2+1,1)
and drag it all the way down. This will count the occurrences of col 1, ie it will tell you which is the first, 2nd etc time a given value appears in col1. You can then use it as as the basis to change the value in other columns.
Also, it is not good practice to have a column where the first cell has a different formula from the others. You can use the same formula nesting another IF and referencing the row, so as to set one formula for the first row and one for the others.
I am trying to display a report in SSRS as a table. I have three columns -Date, 5000 Brush, and 5000 Roller. I am grouping the 2 columns brush and roller with the date column. I have one dataset and it returns job numbers which are specific for the 2 columns. I have used expressions to sort out which column displays which record.
Example expression I have used in "5000 Roller" column is
=Switch(Fields!MachineName.Value="TP5000", Fields!JobNum.Value)
The report display all data successfully but my problem is the 2 columns are not aligned.
Below is an example of the output of my report
As you can see in the above image, the first 3 records are for the column "5000 brush" but the other records are for "5000 Roller", the problem is, records for "5000 roller" start from the 4th row of its column rather than from the 1st row.
Is there a solution to fix this issue?
I'd like to automatically number a column. Similar to Excel, where I can type "1" in one cell and the cells below it automatically get numbered 2, 3, 4, 5, etc. I don't know why I'm having so much trouble figuring out this function on Openrefine but any help would be greatly appreciated.
Thanks,
Gail
You can add a new column ("Add new column based on this column") with this Grel formula inside :
row.index + 1
The answer by Ettore Rizza already provides a solution for the common case. As the question author stated in a comment it does not work for his use case. He wants to add consecutive numbers to unfiltered rows.
For this you can use records. The basic idea is to create records from the filtered data and use the record index as counter.
Steps:
With filters active add a new column with the expression value.
Move the new column to the beginning to use it as records.
With filters still active add a new column (or transform the first one) with the expression row.record.index + 1.
Original
Filtered
Records
Index
A
A
A
1
1
2
B
B
B
2
C
C
C
3
Excel 2007
I have a row of cells with variation of numbers and letters (which all mean something.. not random.)
It's basically a timesheet. If they take a sick day they put in S, if they take a partial sick day they put in PS. The problem is they also put in the hours they did work too. They put it in this format: (number)/PS.
Now if it were just letters I could just do =countif(range,"S") to keep track of how many s / ps cells there are. How would I keep track if they are PS where it also has a number separated by a slash then PS.... I also still need to be able to use that number to add to a total. Is it even possible or will I have to format things different to be able to keep track of all this stuff.
Assuming this is something like what your data looks like:
A B C D E
1 1 2 S 4/PS 8
...then you could do this:
1- add a column that just totals the "S" entries with a COUNTIF function.
2- add a hidden row beneath each real data row that will copy the numerical part of the PS entries only with this function in each column:
=IF(RIGHT(B1,2)="PS",IF(ISERROR(LEFT(B1,LEN(B1)-SEARCH("/",B1)-1)),"",INT(LEFT(B1,LEN(B1)-SEARCH("/",B1)-1))),"")
3- add another column to the right that just totals the "PS" entries by summing the hidden row from step 2.
3- add another column that totals everything by just summing the data row. that will ignore the text entries automagically.
4- have a grand total column that adds those three columns up
If you don't want to see the "S" and "PS" total columns, you can of course just hide them.
So in the end, the sheet would look like this:
A B C D E F G H I J
1 1 2 S 4/PS 8 1 4 11 16
2 4 <--- hidden row
HTH...
My quick take on this is:
pass the cell value into a CSTR function, so no matter what is entered you will be working with a string.
parse the information. Look for S, PS, or any other code you deem to be valid. Use Left or Right functions if you need to look at partial string.
check for number by testing the ascii value, or trying a CINT function, which will only work if the string can be converted to integer.
If you can show a sample of your cells with variation of numbers and letters I can give you more help. Hope this works out.
-- Mike