How to update OpenOffice Calc sheets with new formulas and formats? - openoffice-calc

I have created a spreadsheet in OpenOffice Calc that has multiple sheets for each month of the year. The sheet has some specific formulas and data laid out in several months.
Is there any easy way to go about modifying a formula and having it transfer across all the sheets?
Or if the format changes, is there a way to merge sheets through some type of macro or something?

If your data is laid out in a very regular way, you may be able to copy+paste the modified formula to each sheet and have it adjust the cell references correctly.
However, for this type of flexibility (being able to make a change in one location and have it reflected in how all existing data is displayed) a database is generally required. OpenOffice has a database component Base, and information from Base can easily be imported to Calc if you have specific spreadsheet requirements. The learning curve for Base is fairly long, but might be worthwhile if you handle this kind of data frequently.

A formula in the same place on several sheets need only be updated once provided the relevant sheets are grouped together first (click their tabs with Ctrl depressed - and don't forget to ungroup them when appropriate!). Fill applied to A1 of a group of sheets will colour A1 in each of those sheets.
The Consolidate feature (under Data) might be of interest.

Related

Power BI report translation and embedding (title, column names)

I just begun working on a project and have been tasked with translating some reports. I have found a handful of ways ranging from manual dataset translation to scripts and such. I was wondering, if there is some way of automating this process. Is there a way of taking an existing dataset, running some commands or something and with a few steps, have a translated report. My team has these reports embedded and there is a language code in the URL, perhaps there is some way of making use of that.
The dataset, that I am testing and trying to get it to translate consists of 4 tables and column names are only values with text, everything else is numbers. Logically, numbers don't translate, so columns are only necessary. There are also some visual titles, that should be translated.
I appreciate any help and any efforts made to resolve this.
For an embedded report, there's a couple of things that you can do:
Use translations files in the PBI model to handle measures and column names. These will show up as labels in visuals. See the section, Translate Power BI field and table names, here: https://pbi-guy.com/tag/tabular-editor/
The language can be selected from the app by putting it in a querystring: https://community.powerbi.com/t5/Developer/Setting-language-and-locale-for-embedded-report/td-p/606714
Add a table with translations for labels and titles. See this section from the same link above: Create one report and a “translation table” to display the right language. Note that a filter will need to be set by the app to select the language in addition to how the language is set in the querystring above.
A couple of important caveats:
Anything overwritten in the report will override a translation. So if you change a column name in a visual, that's what it will always be no matter what language is selected.
Not every visual supports expressions, so sometimes you'll have to wrangle a button or multi-row card to use as a label or title.
the free version of tabular editor can be found here: https://github.com/TabularEditor/TabularEditor/releases/tag/2.17.2

Column A on Rankings sheet updates names from Column A on Names sheet. If the names sheet is updated, I need the corresponding rows to update as well

This is just a sample sheet, Sample Sheet but the names included in Column A on the Names Sheet are updated regularly. Constantly dragging the corresponding rows around is not a feasible solution. I have in actuality, a list of approximately 300 names and the Spreadsheet is being read by another spreadsheet. I need the corresponding rows to move accordingly with onOpen() function or with a button that updates the sheet.
I have looked all over Stack Overflow but I cannot find a solution to the problem. This is my first posting on this site in the hopes of finding a script or another solution that will solve this issue. I tinker around a bit with scripts but I am still a relative newbie. I don't even know where to begin with this.

Workarounds to handle merged table cells in M2Doc

In my document, I need to generate a table that has merged cells.
simple example
As M2Doc does not support the merge of cells, I have tried two workarounds.
Workaround 1
It consists in creating nested tables inside the second column. I have played with the borders to hide the fact that it is a nested table.
M2Doc template of workaround 1
Unfortunately Word does not handle nested table correctly, as there is no way to garantee the constant width of cells. Which results in columns that don't have a constant width.
illustration of inconsistent column width
Workaround 2
My second workaround was to generate excel tables outside M2Doc, with Python4Capella. And in my M2Doc template, I create references towards the generated tables.
This second workaround would work well if I did not have to display XHTML descriptions in my table. So far, I can only get the markup code in Excel and I have no means to interpret it.
Any idea of how I could implement my table including merged cells with the current capabilities of M2Doc? For example with a dedicated Java service that I would develop? If so, any hint about how this service could be implemented is highly welcome. And so is any idea of strategy!
Thank you
It is possible to create a Java service to merge cells for instance this service.
Also you have Excel services to insert a table from an .xlsx file.
With Python for capella you will have to parse the XHTML from your description to use OpenPyXL formating.
And maybe an other idea could be to use MS Excel itself to do the conversion via a macro or some cell format option.

Regex Expression with Conditional formatting in a Google Sheet with tracts

So I have to do some conditional formatting for a google spread sheet. Essentially I need to ensure that of a set of data, all of the census tracts that exist in the county need. I want to use conditional formatting to automatically highlight all of the tracts that is in the data set that don't exist in the county. I have a long chain of regex that is not working right now but it contains the data set of tracts that exist in the county. Any suggestions for better solutions would be great.
=NOT(REGEXMATCH(G1,"^(?:5001|5002|5003|5004|5005|5006|5008|5009.01|5009.02|5010|5011.01|5011.02|5012|5013|5014.01|5014.02|5015.01|5015.02|5016|5017|5018|5019|5020.01|5020.02|5021.01|5021.02|5022.01|5022.02|5023.01|5023.02|5024|5025|5026.01|5026.03|5026.04|5027.01|5027.02|5028|5029.01|5029.02|5029.03|5029.06|5029.07|5029.08|5029.09|5029.10|5030.01|5030.02|5030.03|5031.05|5031.08|5031.10|5031.11|5031.12|5031.13|5031.15|5031.16|5031.17|5031.18|5031.21|5031.22|5031.23|5032.04|5032.07|5032.08|5032.10|5032.11|5032.12|5032.13|5032.14|5032.17|5032.18|5033.04|5033.05|5033.06|5033.12|5033.13|5033.15|5033.21|5033.22|5033.23|5033.24|5033.25|5033.26|5033.27|5033.29|5033.30|5033.31|5033.32|5033.33|5033.34|5033.36|5033.37|5034.01|5034.02|5035.04|5035.06|5035.07|5035.08|5035.09|5035.10|5035.11|5036.01|5036.02|5037.03|5037.07|5037.08|5037.09|5037.10|5037.11|5037.12|5037.13|5038.02|5038.03|5038.04|5039.02|5039.03|5040.01|5040.02|5041.01|5041.02|5042.01|5042.02|5043.07|5043.08|5043.11|5043.14|5043.15|5043.16|5043.17|5043.18|5043.19|5043.20|5043.21|5043.22|5043.23|5044.10|5044.11|5044.12|5044.13|5044.14|5044.15|5044.16|5044.17|5044.18|5044.20|5044.21|5044.22|5044.23|5045.04|5045.05|5045.06|5045.07|5046.01|5046.02|5047|5048.02|5048.03|5048.05|5048.06|5049.01|5050.01|5050.06|5050.07|5050.08|5050.09|5051|5052.02|5052.03|5053.01|5053.02|5053.03|5053.04|5053.05|5054.01|5054.02|5054.03|5055|5056|5057|5058|5059|5060|5061.01|5061.02|5061.03|5062.02|5062.03|5062.04|5063.01|5063.02|5063.04|5063.05|5064.01|5064.02|5065.01|5065.02|5065.03|5066.01|5066.03|5066.04|5066.05|5066.06|5067.01|5067.02|5067.03|5068.01|5068.02|5068.03|5068.04|5069|5070.01|5070.02|5071|5072.03|5072.05|5072.06|5073.01|5073.02|5074.01|5074.02|5075|5076|5077.01|5077.02|5077.03|5078.05|5078.06|5078.07|5078.08|5079.03|5079.04|5079.05|5079.06|5080.01|5080.03|5080.04|5081.01|5081.02|5082.02|5082.03|5082.04|5083.01|5083.03|5083.04|5084.01|5084.03|5084.04|5085.03|5085.04|5085.05|5085.07|5085.08|5086.01|5086.02|5087.03|5087.04|5088|5089|5090|5091.02|5091.05|5091.06|5091.07|5091.08|5091.09|5092.01|5092.02|5093.02|5093.03|5093.04|5094.01|5094.03|5094.04|5095|5096|5097|5098.01|5098.02|5099.01|5099.02|5100.01|5100.02|5101|5102|5103|5104|5105|5106|5107|5108.01|5108.02|5108.03|5109|5110|5111|5112|5113.01|5113.02|5114|5115|5116.08|5116.09|5117.01|5117.02|5117.04|5117.05|5117.07|5118|5119.05|5119.07|5119.09|5119.10|5119.11|5119.12|5119.13|5119.14|5119.15|5119.16|5120.01|5120.05|5120.17|5120.19|5120.20|5120.21|5120.22|5120.23|5120.24|5120.25|5120.26|5120.27|5120.29|5120.30|5120.31|5120.32|5120.33|5120.34|5120.35|5120.36|5120.37|5120.38|5120.39|5120.42|5120.43|5120.45|5120.47|5120.52|5120.53|5121|5122|5123.05|5123.07|5123.08|5123.09|5123.10|5123.11|5123.12|5123.13|5123.14|5124.01|5124.02|5125.03|5125.05|5125.06|5125.08|5125.09|5125.10|5126.02|5126.03|5126.04|5130|5135)$"))
This does not seem like a good use of regex. You should embed that list somewhere in the spreadsheet and then in your conditional formula use a vlookup inside an isna to deliver a true/false whether it is in the list.
Unfortunately, Google Sheets does not allow the conditional formula to reference off-sheet ranges, so you'll have to keep both lists on the same sheet.

Is there a way that POWERBI does not agregate all numeric data?

so, I got 3 xlsx full of data already treated, so I pretty much just got to display the data using the graphs. The problem seems to be, that Powerbi aggregates all numeric data (using: count, sum, etc.) In their community they suggest to create new measures, the thing is, in that case I HAVE TO CREATE A LOT OF MEASURES...Also, I tried to convert the data to text and even so, Powerbi counts it!!!
any help, pls?
There are several ways to tackle this:
When you pull a field into the field well for a visualisation, you can click the drop down in the field well and select "Don't summarize"
in the data model, select the column and on the ribbon select "don't summarize" as the summarization option in the Properties group.
The screenshot shows the field well option on the left and the data model options on the right, one for a numeric and one for a text field.
And, yes, you never want to use the implicit measures, i.e. the automatic calculations that Power BI creates. If you want to keep on top of what is being calculated, create your own measures, and yes, there will be many.
Edit: If by "aggregating" you are referring to the fact that text values will be grouped in a table (you don't see any duplicates), then you need to add a column with unique values to the table so all the duplicates of the text values show up. This can be done in the data source by adding an Index column, then using that Index column in the table and setting it to a very narrow with to make it invisible.