Drill Down in Treemap in Tableau - tableau-desktop

I want to use Drill Down in Treemap. I have different categories and one Measure: Sales. For instance, I have Product Type, Country, and Year.
Firstly, I want to build a treemap based on product, Next when I click on any specific Product, I want to drill into a new sub-Map about how this product is traded across the Countries. And after when I click each County, want to see how the sum of sales is distributed through the Years
I have seen a lot of videos on YouTube, but all of them are made for subcategories, not for different variables. Therefore, could anybody give the instructions path on how to deal with this issue? Or just link any relevant video

Related

How to Import webpage with only the data I need?

I'm new to google sheets and trying to import data from a website to my spreadsheet. The website URL is
https://sagarin.usatoday.com/2023-2/college-basketball-team-ratings-2022-23
I've managed to import some data, but it's not in a format I can use. I want to import the Team name and the 5 power rankings for each team, so I can add the 5 rankings together and come up with a total. When I managed to import the data it includes the team's win lose record in the same cell as the power ranking, which makes it unusable because I can't simply add the power rankings.
Below is the function I'm using to import the data
=IMPORTXML("https://sagarin.usatoday.com/2023-2/college-basketball-team-ratings-2022-23/","/html/body/div/div/div/div/div/div/pre/font/font/font/font")
Any idea how I can get just the team names and the 5 separate power rankings associated with each team?
I've tried numerous times with different functions, but the following is the closest I've come to getting what I want. I only wanted the team names and the 5 power rankings associated with each team. What I got was team names and power rankings, but it also included numbers for win loses and other stats in the same cells, which I don't want.
=IMPORTXML("https://sagarin.usatoday.com/2023-2/college-basketball-team-ratings-2022-23/","/html/body/div/div/div/div/div/div/pre/font/font/font/font")

Vacation tracker

So I have an issue I cannot wrap my brain around. I am creating an employee vacation tracker, and I have already multiple sheets with different data, i.e. one consists of Google Form answers about when the employee wants to take time off work for holidays. Please note that I also already have data on employee availability each standard day of the workweek.
Alright, onto the problem. Let's say 'Lukas' is a part-time employee and only works Tuesdays, Wednesdays, and Fridays. He sends in his vacation plan: he will be enjoying the seaside from 1.8. until 15.8. How on earth can I combine multiple sheets and data in such a way, to only count his holidays by his actual workdays? I can not even begin to write the formula - this is where I should note I am a beginner at Sheets.
Alright - I took a look at your mock-up sheet, I must admit it's still felt somewhat unorganized.
Due to the lack of enough dummy data and without being certain whether or not you empty/refresh the weekly availability tabs (I'd recommend you not to do so), it wasn't fully clear what you wanted.
Nonetheless, I couldn't resist, I've been working on several projects and your topic gave me some creative inspiration, so I went ahead and did a major rebuild in your mock-sheet.
Should you want to use or implement it, here's some info good to know:
The Employees tab is meant as an input field for any coming and going employees; just add any names there and they will be automatically added to the main schedule.
I mocked some more data, so the output might not be what you expected, but;
In the Holiday overview tab you can see all employees with the days they've taken, planned, and left.
In the Schedule Dashboard tab, you will find three main sections.
The working schedule based on the data from the Weekly Availability tab of which I guess you manually move over data to from the Availability Responses tab.
The Holiday schedule; this fully takes into account whether or not it overlaps with a supposed working day, or if the person was off already anyhow. Therefore; Holiday is shown when it overlaps with a scheduled working day and Day Off is shown when it doesn't. Only the Holidays are deducting the remaining holidays.
The right one I did based on my own experiences; it works like an alerting sign that whill show you if holidays are approved while still being scheduled, where I work we do this the other way around. Holiday Request > We unschedule > We approve holidays > No overlaps should exist.
I posted some comments in the sheet here and there on orange tiles.
Curious to know if this helped!

Rails: How to query records in different languages

I have a Rails inventory app that is available to global users, allowing them to enter their own inventory information and query those of others.
a British person in London adds 10 units of "bicycle" to the inventory table
a Japanese person adds 2 units of 自転車 (bicycle in Japanese)
a Vietnamese adds 5 units of xe dap (bicycle in Vietnamese)
The British person can query 'bicycle' and it will output all bicycles in the system (17 units) and can show the details of each in their original language, without the users classifying them beforehand. Likewise, the Japanese person can query '自転車', which will show all bicycles.
How can this be done?
The globalize gem requires users to manually translate each record so it's not the correct way. I've heard about machine learning and deep learning but I don't know if it's the right solution for this.
So if stackoverflow is not the right place to ask this? Where should I ask? Quora does not allow long questions.
Machine learning does not seem like a proper solution in this context since you don't have enough experience with it and it's a complex matter to just start with it and learn enough to apply to a real life problem.
Here are a few solutions you could implement today, as long as you understand the requirements and the up/downs for each, you will have to figure those out by yourself.
Since I don't have enough information about your system I'll try and generalize it to something that's likely.
Solutions:
1.Define a limited number of items for your system, like Bike and add
them to a config file or in a items database, each item having it's
unique id and when a user will have to add something they will have
to select from your list. Have a Other item as a catch-all, and
maybe provide a note so the users can add anything to recognize the
item.
2.Similar to the above solution but you give the users a way to add new items into the system, so you have 10 standard items and every user can add items to the site (those being moderated) and other users will have access to them.
3.Have a solid search system in place like Elasticsearch (or anything else), and when the user create items you index that item in the language that is entered, and then use Google translation API (or another translation service) to translate them in all the languages you need and index those for search as well.
I think solution 1 is the best if you are able to implement it followed by solution 2.

Neo4j Recommendation Engine [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I am new user on Neo4J.. Just one week of reading.
I am looking into using NEO4J for creating recommendations.
We have product catalog and on product details page we would like to show similar products
based on features of different products, cumulative rating, price range.
These products as such don't have relationship with each other except that they share common features.
For example
Product : iphone
Feature: camera, 4g etc
product: Samsung Note
Feature: camera, 4g etc
Any thoughts if Neo4J is correct choice for this type of data? We want list of similar products based on feature set, price rang, rating for each prodct
And how wold data model will look?
You might take a look at http://www.reco4j.org/, a recommondation engine framework working on top of Neo4j.
I'd suggest looking at a site like Amazon.com (or similar) and see how they organize their SKU. If you open up any item on Amazon you will "facets" (or ways to categorize items) like:
Department
Sub-Category
Brand
User Rating
Price Range
Features (as keywords)
You then have to determine whether each of these facets is better modeled as a hierarchy or as a property. Department and Sub-Category look like better candidates for a hierarchy, whereas Brand and Features look like better candidates for properties.
Department and Sub-Category would look like trees, and the leaves of the tree would be all your SKUs.
Then your "similarity" function could be as easy as if a "product falls within the same Department/Sub-Category and it matches at least 50% of the features".
Hope this helps, this is just my initial thoughts.
There are several options:
you can do recommendations by finding similar users (via their actions/purchase history/ratings) and recommend things that those similar users have bought, see: http://docs.neo4j.org/chunked/milestone/cypher-cookbook-similar-favorites.html
you can simple list other products that are in the same category and have similar attributes (it is good if you can pull out attributes as nodes instead of properties so it is easier to match them)
you can list products that would be useful accessories for already bought products (it doesn't make sense to suggest a camera to someone who just bought a camera, rather accessories for what he bought)
if you have no initial purchase data you can just list products with high rankings in similar demographics (gender, age, etc)

Contest ranking question - how to rank entries in multiple categories?

I'm currently developing a video contest web application using Ruby on Rails. It integrates closely with YouTube, which it uses for submitting videos, comments, average rating, and popularity stats. The application will also count Twitter and (possibly) Facebook mentions, and count the number of times visitors have clicked an "Add This" social network button.
Instead of direct voting it will use each video's YouTube rating and social media presence to pick a winner.
My question is: What is the fairest method for ranking the entries?
My basic idea is to just find each video's ranking in each category separately by sorting the results of an ActiveRecord query, then compute the average of all these numbers and use it as the video's master rank. Then I'd sort all the entries by this rank, with the lowest number coming in first, etc. Is this a fair way to rank the contest entries?
Shouldn't the contest organizer be telling you how they want everything rated?
I would personally count the number of youtube submissions, add the score for each, then divide by the number to get their average score, and then suppliment that somehow by social media mentions, but it is up to them to tell you which should carry more weight. They have to understand that you can design the app to do whatever they want, but they are in charge of letting you know what precisely they want. That sort of decision should not be left up to the designer. Let them wrestle with it in committee for a bit, don't sweat the actual algorithm until they come up with the answer for you.
It depends on what you're trying to accomplish. However, it seems to me that the social media score is pointless. The net result is that someone bothered to watch and/or rate the video on YouTube. Those scores alone should tell you if someone is "doing a good job" on the social media front.

Resources