I created a Custom visual for Power BI. It is working properly but I noticed that the data points allowed to render is limited to 1000. According to the it can be configured up to 30,000.
How to increase the data point limit on power bi custom visual?
Thank you.
Marius
You need to set the dataReductionAlgorithm property in the capabilities.json file. For example:
"dataReductionAlgorithm": {
"window": {
"count": 30000
}
}
Note that if you use window as I did in the code (instead of top, bottom, or sample), you will be also able to use the Fetch more data feature to bypass the 30K rows limit.
Related
We have an embedded Power BI solution (embed for customers/app owns data)
Is it possible using any Power BI APIs to, given an embedded report with a visual, to determine the sort settings for the visual.
For example, the user creates a table with one column, 'column1', say. They sort column1 descending.
We would like to, using JavaScript, analyse the visual and know that column1 is sorted in descending order.
I don't think this is currently available in the API but wanted to see if I had missed something. (I know about visual.orderBy() to SET the sort settings, we need to GET the sort settings)
Is this possible?
Thanks
You can not determine the sort settings applied to the visual, that feature is not available currently.
For Example:
a. Before applying the sorting:
console.log(visual);
b. After applying the sorting:
await visual.sortBy(sortByRequest);
console.log(visual);
Output Before :
Output After :
Please find the reference:
https://learn.microsoft.com/javascript/api/overview/powerbi/sort-visuals-by
I'm using a calculated column that is an average. The problem is, the average is above the range of possible values, which should be impossible. I made a calculated column that calculates the average star rating (out of a range of 1-5) and the value on a visual is coming up as 6, which shouldn't be possible, even if all the values were 5 stars, which it isn't. So there must be an outlier causing the average to be above the range of possible values, but it isn't in the original data source which Power BI pulls from. The original data source shows me a value of 4.1 as an average, which is within the expected range. But Power BI's dataset has introduced an outlier or (data is missing) that caused the average to become a 6.
I can elaborate on the dax below, but what I want to try to do is pull the dataset down from power bi to figure out why it's calculating its average that way. Looking at the source data, the average is 4.1 and there are no outliers in the source data. So, it's not the source data that's the problem. Basically, I want to find the outlier that's causing the average rating to differ in Power BI.
Avg Rating = IF(SUM(data[Total Reviews]) = 0, BLANK(), SUM(data[Monthly Stars])/SUM(data[Total Reviews]))
Here's a screencap that shows the two
relevant columns
Notice that I had to manually calculate (aka eyeball the columns and type into a calculator then calculate manually) these two columns, which came out to ~4.6. I'm trying to download this dataset to explore it in further detail without having to eyeball the dataset, as the source doesn't show this discrepancy.
To get to the data you have a number of options.
Create a new report in Power BI Desktop, and then use the connect to PBI Dataset option to access that data, in for example, a table. You can create your own report based on the dataset in the service as well.
Access that data via Analyze in Excel, which should allow you to access the data in a pivot table using Excel
Use the Export data from the visual option, using this you can download 30,000 rows into a csv, or 150,000 in to xlsx formats
Please note, that these options may not be available to you if you do not have the right permissions in the workspace, or options have been turned off in the Power BI Admin tenancy settings.
We are working on embedding a power bi report using power bi embedded js library. Our current report in power bi service is saved under a specific dimension, lets say 16:9, therefore my container size should respect the same ratio to avoid having the grey void in the margins. The problem is that we have a feature thats enables the container size modification, thus, in case of sizes different from the ratio specified earlier in the report the grey margins appear.
My question is, is there any way to let the power bi service handle the responsivness of the report ? or should we manipulate the css of the page ? or should I update the report with a new embedding config (if yes which one) ?
Grey Margin
No, there is no way to change the report-page size dynamically at the time of embedding.
Possible workaround can be changing the report container size dynamically using the report-page sizes on report rendered event as the report will be rendered each time the report-page is changed.
Example:
report.on("rendered", function (event) {
report.getPages()
.then(function (pages) {
for (i = 0; i < pages.length; i++) {
if(pages[i].isActive)
{
$("#report-container").width($("#report-container").height()*(pages[i].defaultSize.width/pages[i].defaultSize.height));
break;
}
}
});
report.off("rendered");
});
Power BI is responsive, when changing the report size it will re-render.
In order to handle the grey margins, consider using a transparent background.
You can find the documentation here (search for "Transparent Background"):
https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-Configuration-Details
I edited my answer according to last updates from documentation here regarding report embedding.
The PageView mode have been removed from report embedding configuration settings and the one used is now the setting under which the report itself is saved under power bi service or power bi desktop after being published:
Power BI Service:
Power BI Desktop:
Same as above
Your report is going to be embedded depending on the setting it was saved under. I would recommend fitToWidth and calculate the container height according to the aspect ratio of the report.
I'm here because I have not find the way to change the display units the way I wanted.
For example, for Millions the system shows M. But I want to show MM instead.
How can I do that?
Thanks.
You can't
In Power BI Desktop your options are limited to:
You're not the only to be bothered by this though.
There's an improvement issue in the Power BI forum here:
Customize the Display Units property in a visual. If you're a registered user you should definitely leave your vote there.
I have a data set that contains ~4 million rows. The visual component I am using is a Matrix visual. After selecting the data I need, the Matrix visual is 150 rows and 25 columns. I would like to export this into a csv in the exact way it is shown in the Matrix. When I try exporting the data set via the export data option in the menu, I get a message indicating that my data set is too big.
Is there a way of exporting the data in this format, or perhaps a python / R script that can gain access to the data the visual is using?
Any help appreciated, Thanks in advance
Exporting data as is from a matrix, is not supported. However, it is planned and you can vote for it, if you want to. You can only export the underlying data, but you obviously reached it's limits.
What you can do, is to connect from Excel to your data source and create a pivot there, the same way as your matrix in Power BI.