PowerBI replace column names with values from a table containing translations - powerbi

My report has visuals as tables, that display data. These visual names or value names are displayed in english. Once the data is published and then embedded, it needs to be displayed in the according language that is selected by a user.
How to change the value names, without messing up the data?
For example, here would be a visual:
|Electricity| 1 | 5 | 6 | 10 | in english
|Electricidad| 1 | 5 | 6 | 10 | in spanish
The dataset contains multiple tables from which data is taken and then visualized, but the translated values are in one table in one column. The table has a column fieldname that is like an identifier in all of the languages available, and text value that contains all of the translations. How could I make a measure or something, to dynamically replace the names but not touch the values?
The report has a table and a pie chart and maybe something can be done with the field Value, when selecting the pie chart. Any help is welcome, thank you!

if your report is going to be embedded, you can leverage external tool like Metadata Translator to automatically translate the metadata (column names, measures, ...) to the language of your choice using the locale of the user opening the report.
You can fetch the tool from this link. The tool is available in GitHub but you need to build it on your computer to install it, I found that installing it through Power BI Business Ops is much easier.
It's fairly simple to use and you can even automate the translation part trough API as Azure Cognitive Service or Google Translate. Behind the hood it's leveraging features that have been available in SSAS for a long time. You can even see the translation using another external tool like Tabular Editor, but it's harder to manage them from there.
Last but not least, Microsoft released very recently a very good series of videos to achieve multi language report. It's not so easy to set up but I would have been quite glad to have this kind of documentation when I had to figure this all by myself few years ago...
Hope this helps.

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

Best way to organize data from multiple companies in Power BI

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.

Power BI - How to have a calculated column and place it in a merged cell?

I am new to Power BI and with the limited time given, I am stuck at how to come up with:
Below Table B-Row1 ("1/20" and "M"-Monday cell) - how to
specifically place the date measures in their specific cell and put
it in one column?
How can I merge the cells under the Total column?
How to add all the numbers from the Type1 and Type2 columns and place it in the merged cell in #2?
Any clues/direction/links on how to achieve the Target Table B below will be much appreciated.
PS. Below Table A. Current is just using Matrix Visualization in Power BI.
You can't exactly do what you are after. PowerBI allows you to rapidly put amazing visuals together however that comes at the price of lack of (easy) flexibility. You could build your own custom visual or look in App Source for a visual that does this, or build the Visual in some other tool (via custom code).
However, I'd recommend sticking with the PowerBI matrix, which will give you a cascading drill down and work out how best to align your data to it and other out of the box visuals. Once you start to delve in to convoluted work-arounds to give users data in exactly the format they request you start to burn a lot of time. Look for alternatives to tell the data's story and work with your end-user to buy in to it.
Just wanna share that I have resolved my problem not using one type of visualization, but through using 3 different visualizations in Power BI. I used:
1 Table visual for Date column
1 Table visual for Total column
1 Matrix visual for the Code+Type mapping and counts
I also used DAX function to get the Date format and another DAX function used for both Total and Code+Type counts(to filter data according to the specified date).
Thanks for the response, #Murray and #RADO.

Visual has exceeded the available resources. Tips on how to streamline / better understand limitations?

OK, so I have a relatively complex report that works well on the desktop app but is bombing out on the web portal. Apparently, it is requesting 1048584KB which is just shy of the 1048576KB limit.
This report is a matrix, built as follows:
It is connected to two primary data sources, along with some tertiary feeds and helper tables. One of these is a sales detail table that is a CSV 887MB in size. The other is a purchasing detail table that is an XLS 26MB in size.
I have filtered out portions of the sales table (by date) in the Edit Queries screen. I have also filtered out specific item divisions in the matrix. It is the second step that was allowing this visual to function previously (took out a few not-needed divisions and it started working again, but now this no longer seems to work).
I would like to not just get a quick answer here, but also to better understand how Power BI is allocating the memory and how I can streamline. The rest of the report is using the same data but this is the only visual that fails to load (aside from some tables that are on a line-level and are intended to be filtered down via slicers prior to displaying information). Will add that there are some relatively complex measures that are firing on this visual and not used anywhere else, presuming this has a lot to do with memory demands...right?

Plain Report in PowerBI report similar to repeatable section in Cognos

I'm new to Power BI but am not seeing something that I feel should be pretty common report functionality. I have a cognos report that has a list grouped by specific fields, each item in the list has fields, etc. Each "item" is repeated in the list.
Can Power BI do something similar to this functionality? I have been looking at multi-row cards, tables, etc. but I'm not seeing a repeater control or something that would allow to mimic this functionality? The multi-row cards would work but I can't style them how the customer wants or needs b/c they are printed and need to match a certain format.
Even the single cards, if I could drop all the fields I need as single cards, format them how I want. Is there a way to have all rows repeated in a "list/set" of those single cards? Right now when I drop a bunch of single cards and a splicer it displays the first record and that is it? Surely there is a way to get all the records.
Here is an example (I need the formatting to remain basically the same, each row from data source represents one page that looks like this)
Thanks,
Tim
I don't think this is possible in Power BI yet. A muti-row card has similar functionality, but is not customizable enough to match what you are trying to do. Custom formatting is one of the drawbacks of Power BI at this time.
You can vote for this idea on the Power BI Ideas site, but I'm guessing it's not a high priority for Microsoft for now.