Split columns in Draw.io table - draw.io

I currently have a Draw.io Table (single column), but the problem is that I want it to be split.
Let's say i got one column containing the full name (John Smith), but based on the space I want it to split to two tables. One for first name and one for last name.
Can this be achieved in Draw.io?
(alternatively a workaround using Excel would also be acceptable)

Related

Power BI Combining Columns and use lookup

I have two reports: first report has a column with sponsor names (name: Sponsor) and the other report also has sponsor names but written differently (name: Companies). Example:
**Sponsor**
Apple
Target
Amazon
IBM
Samsung
**Sponsor (Other)**
Apple Inc
Target LLC
Amazon Marketplace
IBM Computers
Samsung Company
I have appended these two columns so that they are in the same report called Sponsor_All, column names the same as above. What I would like is to create a new column where it would pull in the names from the sponsor column and change the name of the Sponsor (Other) column based on a lookup table so that all of the names are labeled like the sponsor column. Hope thats makes sense.
It looks like what you need is conditional column of some sort.
First thing I would recommend, when you append the two tables, if column names are the same it will append values from both tables into one column, instead of having two columns with different name and a bunch of null values. After that you can either add Conditional Column and hard code the values (so it will be something like: if Sponsor starts with 'Apple' then 'Apple' etc.).
This is not the best approach though, cause you will have to maintain these conditions manually. Better if there's some sort of pattern that you can notice, e.g. in your example I see that to get from Sponsor (other) to Sponsor you just need to extract the first word. If this is the pattern you always have you can use Custom Column and use formula to extract only the first word.
Lastly, if you already have some sort of lookup table you can merge it (after appending together Sponsors and Sponsors(Other) into one column) and use fuzzy lookup option. In all honesty though I never used it and not sure how good it is. If it gives you good enough result you can "clean it up" in next step with custom or conditional column.

How to write regex in Knime Unpivoting node to select columns

I am attempting to unpivot COVID-19 data in Knime with the Unpivoting Node.
The data available from Johns Hopkins at
https://github.com/CSSEGISandData/COVID-19
is wide format where each new day of data is added as a new column.
I can manually make the columns with daily data be rows with the Unpivoting Node. However, each day I must reconfigure the node to account for the new column. There are 5 unpivoting nodes in my workflow where this must be done.
The Unpivoting Node has an option to use Regex to detect the columns to include or exclude but I am unable to make it work.
The available columns to include/exclude are a handful of field names such as Province/State, Country/Region, Lat, Long, plus the long list of date columns of the format m/d/yy (or m/dd/yy if later in the month). The Johns Hopkins data for the US is similar format but with additional columns for counties, iso codes, etc.
All of the date columns are this year (i.e. 2020).
For the top part of the Unpivoting node where Value Columns are
specified, I can do what I need by using the Wildcard setting and the
pattern */*/20
For the bottom part of the Unpivoting node, I need a wildcard or Regex
expression to specify all the other columns.
All the other columns include alphabet characters. None are of the format m/d/yy.
Therefore, some sort of Regex that includes any column with alphabetical column names, or specifies NOT m/d/yy should do the trick.
I tried using [\s\S]+ for help writing the Regex but nothing seems to work. I appreciate any help.
If other column names don't have / you can use [^/]+. Check here for more explanation.
I think it might be easy to select the other columns manually in the Retained columns section. (That way you can easily remove some of them if you want to.) I assume the date columns are in a single group, so you can click on the first column to retain, scroll down to the first date column you do not want to retain, Shift+click on the previous column, include those, scroll to the column after the dates columns, and do similar. Please use the Enforce inclusion option to not generate warnings/errors when the new columns added.
Example:
This way you can later easily remove columns from the retained.
PS: On your screenshot it seems you forgot to include the + from the end of the expression.

Multiple Search in power bi

I have a table with columns Firstname,middlename and lastname , implemented custom 'text filter' to search. How canĀ  I implement multiple search that allows user to enter a word and it should fetch among all the rows with that word matching at least one of the 3 columns.
I tried to implement by creating a new table ,check measure and measure , by union of all the columns.And this procedure is taking more space as a new table is created for it.
Is there any other way to do multiple search other than the above mentioned one so it does not increase the size of the file.

Manipulating .xls columns and rows with Open Refine

I need to manipulate a data set such that it can be mapped with Google Fusion Tables. Current xls data is formatted as follows:
Image of xls file with personal data anonymized
Note that a blank row indicates a new entry. I need the information in the column to be sorted into a rows under the appropriate heading, specifically the address for geocoding. Any ideas?
First, do some clean up to merge your second and third column into a single one and then use the feature Columnize by key/value column to transpose data in the third and fourth columns into separate fields.
Once this done, Fusion table should be able to geocode the dataset based on the address. If it is not the case, there is plenty of tutorials to geocode a dataset with OpenRefine. See:
OpenRefine wiki,
Google Maps,
OpenStreet Map,
Yahoo Maps.

Power BI method to Slice string based on "contains text"

I have a string of concatenated data separated by a delimiter "; ". For example: Dog; Cat; Mouse;. (the components of the string can appear in any order leading to a large amount of possibilities)
I am trying to figure out if a custom visual or a method to query the data exists so that if I'm interested in all records that contain "Dog" I can visualize just those....
My first idea was to split the concatenated column in Query editor into 3 separate columns. Then, create a relationship between a table of distinct animals and each of the 3 columns. However, only one active relationship can exists between the distinct animals and the split columns so that's where I stopped.
If this were an excel dashboard I'd just build a VBA drop down box that sliced my data.... so I'm hoping a similar visual slicer exists somewhere....
Back in the Query Editor, after your Split, I would select all the other columns and from the Transform ribbon choose Unpivot Other Columns. This will give you 3 rows for each input row, with each animal name on a separate row.
After renaming the generated Attribute and Value columns, you can create the relationship.
Create a calc column with the FIND function.