In an excel sheet I have several countries listed for different job ID (ex: USA, Canada, UK, UAE, etc). However, once I load the data into power BI and select the map visualization, only one country is listed on the map. How do I get all countries from the spreadsheet be labelled on the map?
Maps are a big problem in Power BI.
You should add latitude and longitude columns for every country into your country table.
There are some map specific issue in Power BI which basically belongs to the Map Provider, not a Power BI Issue. For example, in ArcGIS map you have to provide value "United States of America" instead of "USA". Other wise the map will not going to detect that country appropriately.
For your example cases you mentioned USA, Canada, UK, UAE. Here in most case I guess it is related to the country name. Please try with providing full name of countries. You can aslo search Map wise supported country name from their documentation.
Related
I have a dashboard that looks like this in PowerBi:
Almost every slicer and visual on this page comes from the "visits" dataset. That dataset is 70,000+ rows, where each row stands for a single patient visit to the hospital. There are a few relevant columns for this question such as: "subject mrn", and "protocol_no" (the study they're on).
Well, elsewhere, I have a dataset called "Data Managers" that is the staff assigned to each protocol. It has relevant columns of "subject mrn", "protocol no" and "staff name"
I have these datasets in my power bi like this:
When I connect these datasets by dragging in between them, Power BI warns me that they are many-to-many relationships. This makes sense because:
Lets say staff member John is the data manager for patient 12345 on study x
Well patient 12345 might also be on study y, and on that study, staff member steve is the data manager.
Also, other patients on study x might have other data managers.
So I need to connect these datasets in a way that when I filter to John, I only get rows back from the visits data where John is the data manager for that combination of subject AND study.
When I just drag across from protocol no and subject mrn like this
it doesnt work. The dropdown appears to filter to lists for john, but when I check for accuracy, its people with totally different data managers. Any idea what to do?
If anybody is looking at this, theres probably a way to do it with managing multiple relationships, but I ended up creating a concatenated column in each dataset of "Protocol, subject_mrn" and then linking those new columns together.
I'm starting with Power Bi and I need some help to create the data model for this practice case.
I receive the data in a table that has the power consumption of different houses by hour. In the first column it has the date and hour and the rest of columns has the power consumption of each house (one column for each house).
My idea is to create a dashboard with a map as a filter to select the house and a date slicer to filter a period of time.
I dont know exactly what is the better way to face that, if create a subtable for each house or what.
I know that I also have to create another table with the information of each house with coordinates and relate it to the information table, but this information table has the name of the houses in the header of each column and the name is followed by the text "Power Cosumption".
I would appreciate your help, I think that this is not a complicate problem and you can give me some clues or examples to face it.
Thanks!
Regards
Basically I have a big Excel dataset about 500x500 with economic information from various companies.
Each row is representing a different company and in columns we have the information. A little bit of it is qualitative like ZIP code, type, etc. But most of it is quantitative. For each of the quantitative info, we have info for 5 years, so we have one column for each year and for each information i.e. Debt 2019, Debt 2020, etc.
So my question is which is the best way to preprocess this data to work with it and how should it be done. Either doing the preprocessing with Excel, running a Script on PowerBI, using Query, SQL, ...
The objective is to have a report which will be accessible online and the user will type the name of the company and it will show them the dashboard with the information of that company (only that one), so they can navigate through it.
The structure and which information is shown is the same for each company, the only thing that changes is the "numbers" that each company has. So it has to be possible to change which data is showing (to use the one from the company they want).
It also needs to be able to show comparative data to other groups of companies or to the total.
I want to have it right from the start, because then changes get complicated.
I thought about doing sort of a "relational model" with one "table" for each company with the quantitative data (with one row for each year and each column one info point) and then a general table with the qualitative data (with rows being each company and the columns the info). But I am not really sure.
I know how to use Power BI but I have never used it for something this big. I would like to know which way to organize this data is better and some info on how to do it.
Many thanks to everyone.
I thought about doing sort of a "relational model" with one "table" for each company with the quantitative data (with one row for each year and each column one info point) and then a general table with the qualitative data (with rows being each company and the columns the info).
Yes, do that.
General guidance is to use Power Query in PowerBI to transform the data into a star schema model. See Understand star schema and the importance for Power BI
So that would typically result in one table that has the "dimension" data for each company, a date table, and a "fact" table at the grain of (CompanyId,Date) with the quantitative data.
I have 3 tables and I want to get different data for a chart. First and second have a common key, second and third have a common key, but first and third does not.
EXAMPLE DATA:
TABLE product data
product ID
product category
TABLE orders
order ID
Product ID
sale price
TABLE order logistics
order ID
Client ID
Client's country
What I want to achieve is a graph that shows:
Sum of sale prices for all product in category "cars" bought by client from country "USA"
I know how to use filters and how to make graph, my problem is how to get my data together in one document.
I know that I can modify data and add lookups in Google Sheets but as my data has 100 000+ rows I am looking for a more efficient solution than vlookup between tables in Google Sheets.
So far I could Blend data only when common key was present.
Blend in Data Studio needs the same common keys for all data sources.
You need to do these joins in BigQuery.
I am trying to build my first drill through report in Power BI.
My tables look like this :
The data model looks like this:
The table in the first report looks like this:
This report has slicers and text filters that filter on "Region", "Product Description" and "Number of Products".
Upon filtering using slicers, now I am clicking on a row in a table to drill though and opening another report - sub-product report.
When I create a card in the sub-product report for "Region", I get options like, "First", "Last", "Count" etc. First and Last of which set of rows is what I am trying to understand.
The combination of "Region" and "Product Name" given by the column REGION_PNAME is unique. When I filter using the slicers, say it results in 10 rows in the first product report. But I am however drilling through on one row only. Is the drill through solely based on the value of "PNAME" (Product Name) or other values of the row are taken into account ? Because it is possible that a particular product, say P1 can belong to both Region "A" and Region "B" and choosing FIRST_REGION would be incorrect. I want to be able to see just 1 Region Value which belongs to Region - Product combination row on which I drilled through.
I am trying to understand what flows into the second report from the first report when I drill though. I am keeping the filters across reports. In my second report the drill though is "PNAME" (Product Name).