How can I select and display a random data from multiple rows and columns in a spreadsheet in LibreOffice Calc? - libreoffice

I've a spreadsheet in LibreOffice Calc as shown below in the figure. I want to select and display a random data from multiple rows and columns in that spreadsheet.

Related

How do I set decimal number format in percentage total format on Cross-Tab report table

Crystal Reports 11.5 - I have tried to format the % objects in the cross-tab table to show 1 or 2 decimals but it is not saving. As a result the values are all rounded and so the sum of the sub totals does not add to 100% (sometimes only 97%) even the GT shows 100%.
How do I edit the format and save this?image show table sample with wrong values

Sum two columns together in Tableau

In Tableau, I am trying to figure out how to sum up the percentages of two columns. I calculated the percentages using the percentages of command and used the table option, from the analysis menu. This generated the table shown below. I would like a column that sums the 4 and 5 columns together to show a total percentage of 59.76 which is 26.83+32.93 from columns 4 and 5. How would I create this calculated field?
How I generated the percentages:

Is it possible to add custom calculated row in table?

My data source is Excel file. I imported the Excel file in a tableau. I want to create custom calculated row field for each column.
In the above picture, I can generate Grand Total in tableau from here Analysis -> Totals -> Show column grand totals. My problem is I want to generate another row which will have value from sum of High + medium row values.
Note: I taken this screenshot from excel sheet and please ignore the values in the row.
You can create a calculated field to sum just the High and Low values. Something like:
sum(If [Priority] = 'High' or [Priority] = 'Low' then [Value] end)

How do I add a totals / averages row to a crosstab row group?

I have a crosstab that works out the average for the pivoted column.
It looks like this
I need to have averages totals for "Part Mark", "Exam Mark" and "Mod Mark" like the pivoted columns have
Here is what the report in iReport looks like (I've added green blocks with my amazing photo editing skills to show where the totals fields will need to be)
Here is the Solution:
create measure which should represent the field for which you want to perform
the Average calculation
set Value Expression to the field on which Average calculation should be performed
set Calculation to Average
add this field to the Total section of your crosstab

Time series generation matlab

I have an excel worksheet with several entries of column data. The data is arranged in pairs such that the first column contains dates and the second contains time series data corresponding to that date. So for example time series 1 will be in columns A and B where is is the dates and B is the data. Column C is blank before columns D and E contain the entries for time series 2 and so on and so forth...
How do I merge these into a single file in Matlab where the dates match up? Specifically I would want the first column to contain the dates and the other columns to contain the data. I have tried to do this with fts and merge functions but so far failed..
You could grab the dates like this: dates = [raw{:,1}]' and the data like this data = reshape([raw{:, 2:3:end}]', size(raw,1), []); to get normal matlab matrices in case you want to manipulate them in matlab.
Otherwise if you just want to send them straight back to excel then:
data = [raw(:,1) reshape(raw(:, 2:3:end)];
xlswrite(...blablafilename_etc..., data);
But in this case you should have use a VBA macro :/