I have a PowerBI report built in PowerBI desktop and displaying in a .net app using javascript. We have basic cards with decimal values formatted as currencies or percentages (in the formatting ribbon in PowerBI desktop). When the embedded report first displays in the web app, the formatting symbols ($, %) show for a split second and then disappear. I've removed layout and any extra style sheets and javascripts from the page, but still get the behavior. Have also set the localSettings in the JS config. Any ideas?
It's not a great solution, but a potential workaround would be to format the values using the FORMAT function which changes them to be text strings in the format you define rather than numeric values that get formatted however it decides.
For example, if you have a [measure] you can define another one like this:
measure_formatted = FORMAT ( [measure], "$ #,0.00")
Related
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
Im having issue with PowerBi Dashboard setup. I have imported the data from mssql tables and i want to display numbers with thousands separators to increase readability.
Like: 248754728457 to 248,754,728,457
enter image description here
I really digged through the internet and many stack pages but without a luck. Either have no option in specific tab or other thing.
May you help me?
Alright i finally found it. Maybe it helps somebody:
I went into edit powerquery and set each column as fixed decimal number and applied
then i went into data view (from report view) into column view
then i clicked on the column change its format to decimal number and clicked comma button below as separator.
I am creating a report in Power BI and would like to create an client address string that is formatted as a standard line-delimited postal address in the United States.
I tried creating a DAX measure, but could not get around the error:
A single value for column 'ServiceAddress1' in table 'pbiCoverPage' cannot be determined.
This error occurs if I try to use the DAX TRIM function on any TEXT column for a Measure.
As a workaround, I created a SQL View that returns a CHAR(13) delimited string with a postal address.
However, if I display the field in a card visual, the CHAR(13) do not create separate lines. The postal address is displayed on a single line with the CHAR(13) interpreted as a spaces.
My questions are:
Can text fields be used at all in DAX Functions such as TRIM in a Measure?
Is there a Power BI Visual, other than 'Card' that can display text on a report?
Displaying a postal address should not be a difficult task. Is there a simple way to do this in Power BI?'
Is there any way to use a Text Box in Power BI to show a field value? I think this would allow me to left-justify the address string.
If I try to add a Value to a text box, I get a message:
To turn of Q&A, we need to create a local index of your data. If you publish the report, we'll one in the service as well.
I am researching this message. It seems like I am driving a tack with a sledge hammer. Is there an easier way to display a formatted text string in Power BI?
I tested the following approaches:
Use a Button. The button supports text alignment and has word-wrap. However, it does not support line delimiters such as CHAR(10) or CHAR(13).
Use the HTML Content Custom Visual from:
https://www.html-content.com/
The HTML Content control allows you to write SQL Queries that return HTML that includes the <br> line-break tag.
Thus far, the HTML Content visual is the only way (short of a custom R or Python visual) to display a string (such as a postal address) with multiple delimited lines in Power BI.
I'm creating some reports in Power BI. The data is stored on a SQL server and contains a Unit column with different units consisting of text and/or symbols. I have a problem with the £ sign, which is being converted by Power BI into a #.
How do I get Power BI to stop doing this? I can't see anything in the settings allowing me to change to UK English.
I'm getting around this by using Power Query to replace the # with a £. I could create a new column and use a substitute formula, but either solution isn't ideal in the long term, because 1/ the hashtag may be used for something else in the future and 2/ data comes from multiple sources and it will require additional work to ensure that the correct text is used in the report.
Go to data view in powerbi desktop.
Select the column you need to add currency. And from the above tabs click your currency.
What's the difference between a Standard Report Column and one that is set to Display as Text (escape special characters)?.How can you ensure that the data displayed in a Standard Report Column is safe?
A standard report column does not escape special characters. So if you have data in the column that contains HTML like <script>alert('hello');</script> then a standard report column will cause a browser alert to appear saying "hello", whereas the display as text columns would just display the text <script>alert('hello');</script>.
You should only use s Standard Report Column when you need the column to render some HTML (rather than display it as text) - for example, to display an image in a report, or an input field etc. In those cases you need to ensure that you are in control of the data that is being displayed in that column - which you typically will be. If any data that appears in the column is entered into the database by users then you need to ensure it does not contain anything special - e.g. use htf.escape() function to make it safe.