Split current Tab into many rows/cells then create a second tab and do the same - conemu

I am trying to create a complex console split with ConEmu, two tabs with multi row/columns per tab.
Creating the first tab with 3 rows by two columns works fine
-cur_console:t:"1" cmd.exe
-new_console:s1T66Vn -cur_console:t:"1a" cmd.exe
-new_console:s1T50Hn -cur_console:t:"1b" cmd.exe
-new_console:s2TVn -cur_console:t:"1c" cmd.exe
-new_console:s2THn -cur_console:t:"1d" cmd.exe
-new_console:s4THn -cur_console:t:"1e" cmd.exe
But everything goes wrong when I create A second tab with cur_console then all the new rows and columns are applied to the first tab
-cur_console:t:"2" cmd.exe
-new_console:s1T66Vn -cur_console:t:"2a" cmd.exe
-new_console:s1T50Hn -cur_console:t:"2b" cmd.exe
-new_console:s2TVn -cur_console:t:"2c" cmd.exe
-new_console:s2THn -cur_console:t:"2d" cmd.exe
-new_console:s4THn -cur_console:t:"2e" cmd.exe

I finally understood the grid system on ConEmu.
so I created a new console.
-new_console:t:"Col 0/0"
Then I split it into two equal columns "s50H".
-new_console:t:"1/0":s50H
I finally creates the rows with "s1" for the fist column.
-new_console:t:"Col 0/3":s1T30V
for the second column with "s2"
-new_console:t:"Col 1/4":s2T20V
This it is an example of two columns with 4 by 5 rows.
-new_console:t:"Col 0/0"
-new_console:t:"1/0":s50H
-new_console:t:"Col 0/3":s1T30V
-new_console:t:"Col 0/2":s1T30V
-new_console:t:"Col 0/1":s1T40V
-new_console:t:"Col 1/4":s2T20V
-new_console:t:"Col 1/3":s2T30V
-new_console:t:"Col 1/2":s2T30V
-new_console:t:"Col 1/1":s2T30V

Related

Google Sheets - query for one tab works great but I get Value error when adding a 2nd tab to the query

In a Google Sheet I am wanting to compile data from a specific date across multiple tabs chosen by using Query and Select. My formula works perfectly for the query of 1 tab, but when I add a second tab (there are about 17 in total I want to add), I get the following VALUE error:
"Function QUERY parameter 3 expects number values. But 'select * where B=date '2021-10-12' order by C ASC' is a text and cannot be coerced to a number."
Here is a link to an editable copy of the document. The formula is in the first tab (Schedule), cell A3:
Editable copy of the sheet here

SSRS 2017 Line Up Multiple Tablix and Matrix

I am working in SSRS 2017. I have 3 sub reports, each with a USERID key that links them. The basic setup now is a master report with 1 tablix, it pulls a list of all USERIDs and then has 3 columns. Each column has sub report, 1 is a tablix and the other 2 are matrixs. When I run the report the USERID is passed to each of the sub reports and every USER ID has 2 rows, 1 for headers and 1 for data, but all 3 reports show correctly. What I am trying to do is make is it so the headers for each subreport only show on the first line or even better if they were in the true header of the Master Tablix. Code wise everything runs and works correctly. I am just trying to get the formatting to not list the headers 200 times. As a side, I am not committed to this architecture and if there is a better way to combine all these things I open. I tried combining all 3 into a single data set (unpivot the tablix and union the matrix) but then I lost all the formatting on the dates/currency etc.. I have also tried some hiding the header in the sub report with expressions, but since technically the report is only 1 line, anyway I hid it, it hides for all or none.
Update: I have been able to combined the 2 matrixes into 1, then add columns with the tables, but each is a lookup so ...50 lookups.
The above image shows the tablix with 1 matrix, as you see the headers are repeated for every group and they grow disproportionate so they cause with hidden rows. The 2nd matrix makes the issues multiple. The picutre below is the desired outcome, + one more matrix.

Copy & Paste Errors When Moving Data From SSMS to Excel

I'm attempting to copy a query result from SSMS to excel. I selected "copy with headers" and pasted it into Excel. My data set has 9 columns. When I paste the data into excel, information from column 9 ends spread across columns 9, 10 and 1 It looks like this:
A B C D E F G H I -Column Heading
A B C D E F G H I I -Data
I
(blank row)
I've reviewed the query results in SSMS and this is not occurring in the original data. When the value in column F is NULL the additional row and information in column 10 do not occur. Thus far I have tried the following:
-When I remove column 9 from the query then copy & paste, column 8 is spread across 8, 9, and 1.
-I've also created a brand new spreadsheet, made sure to clear any formatting and tried the copy & paste.
-I saved the query results as a .csv file and imported it into Excel. I still got the same result.
-I copied the columns individually one at a time. The the information in the 8th column ends up on two lines paired with the other columns of the next row. So each item in column 8 becomes another row offset downwards until there are many more values in column 8 than other columns. Where the value in column 8 is NULL, this does not occur.
-I removed all the other items from the query result so that only the values of columns 8 and 9 are returned. All information from column 9 ends up in column 8 followed by a blank row.
Returning 8 alone, each item returned ends up on two rows.
Returning 9 alone, the data is pasted correctly.
The headers are always in the right place. From what I can surmise, the data in column 8 is the culprit here. The data type is a varchar(max) which allows nulls. The information included is in the following format,
(TC Date & Time, Last Name, First Name) Comments
Moving SSMS query results into Excel to make tables is something I do frequently. However I have never before encountered this result. Hopefully my explanation is thorough enough so someone can tell me how to correct this error. Thanks!
Replace feed and Carriage returns from your dataset before you can paste into Excel, Try something like this on the columns you are having issues and then try to paste it in excel:
SELECT REPLACE(REPLACE(yourcolumnname, CHAR(13),' '), CHAR(10),' ')
FROM table
This is probably due to using 'Text to columns' recently in Excel. That splits columns using some rule. Columns need to be set back to 'tab delimited'.
For the offending column:
Data → Text to Columns
Original Data Type: Check Delimited
Click Next
Delimiters: check 'Tab', uncheck anything else.
Click Next
Click Finish
SSMS copy-paste does not preserve data types. Excel tries to parse the string and splits it into additional columns or even lines.
I develop SSMSBoost add-in and we have covered this in our video, which explains 3 different ways of exporting the data into Excel without data loss (data type information is preserved): (Copy-Paste in native excel format, XML export, .dqy Query) https://youtu.be/waDCukeXeLU

Rows concatenating while copying data from SQL to Excel

My SQL query returns 100 rows. When I copy the result to excel sheet or try to download as CSV, data in one of the columns is getting concatenated and excel shows only 30 rows.
For example my query result shows:
Id Name Expression
1 aa One
2 bb Two
3 cc Three
4 dd Four
The data in excel sheet gets copied as:
Id Name Expression
1 aa One
3 cc Two Three Four
Any help is welcome!
Right click any database on your SQL Server -> Tasks -> Export Data, a wizard will pop up. Select your source SQL Server and Destination as Flat File Destination, you can just put an empty csv file on your drive, select Format, Text qualifier. follow with the wizard. See what you can get.
Since I found out that the problem was created by double quotes, I just separated the rows with double quotes.
So we can separate rows, that is first pick all rows with no quotes and then pick all rows with quotes
or
replace quotes with something else.
Select Id, Name, Case Expression When '"' THEN 'BuggerQuotes' ELSE Expression FROM table1
After copying data to excel sheet, I replaced my BuggerQuotes text with double quotes.

Dataset from a Dataset in SSRS

I laid out the report, and I do a query that returns 30+ rows for a given period of time. One for each workflow. Now, I want to take that dataset (so the query only runs once) and define 6 datasets from it that filter it based on a single selected row. I will populate 8 boxes on the form for each of those datasets.
It appears that when you create a new dataset, it wants to go back to the datasource and ask you about all the data from that one again.
I was able to create a dataset that is a filtered view of the query and figured I could live with creating 6 datasets that ran the query each time filtering it differently each time. So, I need to do a 'copy' on the dataset and 'paste' it back in as a new dataset that is the same as the other one except with a new name.
I also need to set the default values for the Start/End date to be the 1st of last quarter, and the first day of this quarter. Is there a way to create calculated default values or do I need to do a query to return that?
if you are using table objects to create your report. you could use just 1 data set and add your filters to the table accordingly. just go to tablix properties>> filters tab.
for default values you can create expressions like for the first day of the current quarter:
=switch(DatePart(DateInterval.Quarter,today()) = 1, cstr(year(today))+"-01-01",
DatePart(DateInterval.Quarter,today()) = 2, cstr(year(today))+"-04-01",
DatePart(DateInterval.Quarter,today()) = 3, cstr(year(today))+"-07-01",
DatePart(DateInterval.Quarter,today()) = 4, cstr(year(today))+"-10-01")

Resources