showing description in powerdesigner - character-encoding

I have a physical data model in powerdesigner and want to show description for every fact and dimension and their attributes in the model. Following the powerdesigner add comment column in physical data
answer, I have a column shows the description but the problem is it shows ? for each character.
The descriptions in my databases are in non-English language and I want to show the original description in powerdesigner. Any help would be much appreciated.

Related

Google Sheets removing duplicate data based on date and data

I apologize if I've overlooked any similar questions that have been answered regarding this issue. I spent a few hours looking through as many questions as I could, but none have gotten close to helping me resolve this particular problem...
I'm working with Google Sheets along with a form to help populate a chart that gives us the locations of equipment based on serial numbers (screenshots below).
The chart is arranged by building names that have the potential to house equipment in column A and equipment types in columns B-H. The form attached to this chart sends its submissions to a second sheet, which is where I draw the data from. I am using MAXIFS to populate the
The problem I'm having is that when a new form submission is entered into the second sheet regarding the movement of a piece of equipment that has previously been moved, the chart will list that equipment in two places instead of simply listing it in the newest location based on the newest form submission. Obviously an item can't be in two places at once.
chart sheet
form sheet
As you can see from the screenshots above, in the "chart sheet" it shows 9006 in three different locations. In the "form sheet" it shows that 9006 was moved from LSB to HSB and then to Admin (in column D).
What I'm looking to do is remove all previous submissions regarding a piece of equipment and only using the newest submission in the chart sheet so that it shows me that piece of equipment in only its newest location. I've tried using UNIQUE, FILTER, and QUERY to try to get the results I'm looking for, but to no avail.
Again, I apologize if a similar question has been answered previously. If any further information based on this question is needed, I'll gladly provide it. Thank you!
EDIT: Here is the "form sheet" with the properly spaced timestamp column.
form sheet2
EDIT 2: The equipment are labeled with similar serial numbers but are proceeded by different letters (ex: X9006 and B9006 have similar numbers but are separate pieces of equipment because of their preceding letters.) The serial numbers are listed in column C of the "form sheet" and the preceding letters are in column B of the "form sheet". The answer from player0 works wonderfully, but only considers the serial numbers without regard to the letters in column B. Some buildings may contain different pieces of equipment with the same serial numbers, but have different letters. I would like for the chart to have the ability to list the same serial number on the "chart sheet" only if the preceding letters are different. I hope this makes sense.
try:
=SORTN(SORT(A2:D; 1; 0); 9^9; 2; 3; 1)

Google Datastudio show empty row combinations

I am creating a Google Data Studio report for a car dealership and I have a problem.
I have made these 3 screenshots to illustrate:
If you see on the first screenshot, the datasource is pretty simple, used/new indicates weather the car being sold is new or used and if it is a sportscar or family car, and exchange/clean deal indicates weather the dealership takes/buys the customers old car in for a trade off in price. The rest should be self explanatory.
On screenshot2-3 you see my report, I have one table for each salesperson and it shows the amount of sales for each combination that has sales.
The problem is this, I want the tables to show each combination even if it does not have any sales at all, it should just show 0 then in record count. Like Mike on the left has more combinations than john, I still want Johns table to show those combinations just with a 0 then, and it should be sorted the same on each table so they look the same, just different data in the cells.
Is this possible to do?
To solve this problem, you need to make a combination of data, from the database with itself. Your main analysis dimension, which will generate your combinations, is used/new and Exchange/Clean deal. So your combination should be:
The filter defined in the second database (right base) must contain a filter telling which person the table will be destined for. So, for each table, you must make a new combination that contains the person-specific filter.
I just took a sample from your original database (10 first lines) and the result is:

How do i trace multiple XML elements with same name & without any id?

I am trying to scrape a website for financials of Indian companies as a side project & put it in Google Sheets using XPATH
Link: https://ticker.finology.in/company/AFFLE
I am able to extract data from elements that have a specific id like cash, net debt, etc. however I am stuck with extracting data for labels like Sales Growth.
tried
Copying the full xpath from console, //*[#id="mainContent_updAddRatios"]/div[13]/p/span - this works, however, i am reliable on the index of the div (13) and that may change for different companies, hence i am unable to automate it.
Please assist with a scalable solution
PS: I am a Product Manager with basic coding expertise as I was a developer few years ago.
At some point you need to "hardcode" something unless you have some other means of mapping the content of the page to your spreadsheet. In your example you appear to be targeting "Sales Growth" percentage. If you are not comfortable hardcoding the index of the div (13), you could identify it by the id of the "Sales Growth" label which is mainContent_lblSalesGrowthorCasa.
For example, change your
//*[#id="mainContent_updAddRatios"]/div[13]/p/span
to:
//*[#id = "mainContent_updAddRatios"]/div[.//span/#id = "mainContent_lblSalesGrowthorCasa"]/p/span
which is selecting the div based on the div containing a span with id="mainContent_lblSalesGrowthorCasa". Ultimately, whether you "hardcode" the exact index of the div or "hardcode" the ids of the nodes, you are still embedding assumptions regarding the structure of page.
Thanks #david, that helped.
Two questions
What if the structure of the page would change? Example: If the website decided to remove the p tag then would my sheet fail? How do we avoid failure in such cases?
Also, since every id is unique, the probability of that getting changed is lesser than the index being changed. Correct me, if I am wrong?
What do we do when the elements don't have an id like Profit Growth, RoE, RoCE etc

Getting inconsistent tab delimiter width when pasting from Google docs spreadsheet

I am trying to create a gadget for some people, where all they need to do is really copy the contents of a spreadsheet, then paste it in a textbox, which will in turn create a nice table for them to embed in their articles.
I managed to do everything, however Google docs, when copying and pasting data in a text editor, seems to get the size (width) of the tab delimiter wrong between values. So, instead of getting 4 spaces that is the default, i am getting 2 in some cases and so far i managed to find out that the reason is that some of the cells contain strings with spaces. For some reason, this seems to confuse Google docs, thus supplying wrong spacings, which in turn, ruin my script.
I know i can use comma separated values here, but the issue is we are trying to give people the ability to simply copy and paste. Look at the example output below:
School Name Location Type No. eligible pupils
In this example, School Name is one cell, Location is another, Type is another and No. eligible pupils is the last one. It is clear that the first cell does not have the necessary space on the right.
Any ideas? I thought about converting all blank spaces that take more than 1 space to commas, but this might lead to a situation users might actually use 2... which would not work again.
For some reason, it was the code editor that was actually not showing the tabs right. Using a regexp and another code editor (vim) showed that all of them were actual tabs. :)

Represent the search result by adding relevant description

I'm developing simple search engine.If I search some thing using my search engine it will produce the list of urls which are relating with that search query.
I want to represent the search result by giving small,relevant description under each resulting url.(eg:- if we search something on google,you can see they will provide small description with the each resulting link.)
Any idea..?
Thank in advance!
You need to store position of each word in a webpage while indexing.
your index should contain- word id , document id of the document containing this word, number of occurrence of the word in that document , all the positions where the word occurred.
For more info you can read the research paper by Google founders-
The Anatomy of a Large-Scale Hypertextual Web Search Engine
You can fetch the meta content of that page and display it as a small description . Google also does this.

Resources