Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
rvcedd
Helper I
Helper I

R histogram not displaying full data

Hello there,

 

I have loaded a dataset with 10 million records in both Power BI and R Studio. When I run the following code in R Studio I got a nice distribution of the values. (second photo)


However, when I run the same code in Power BI using R Script the frequency of all the bins is capped (First Photo). Does anyone know why this is happening? My intuition tells me that it must be the size of the data set and the R code inside Power BI is limited somehow but I cannot reproduce the problem in R Studio.

 

PowerBI Histogram problem.PNGR Studio Histogram correct.PNG

3 REPLIES 3
avilasebastianl
New Member

You need to add the other column in Power BI where the hist is supposed to count the data. 

 

In your case it seems that you have selected one column(arrivals...) but you are not giving the other information to the program to count the data. hope you understand me)

v-chuncz-msft
Community Support
Community Support

@rvcedd ,

 

Add an index column in Query Editor, drag it to Values as well and change the aggregation to Don't summarize.

https://docs.microsoft.com/en-us/power-bi/service-aggregates

 

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello. Thanks for the suggestion but that is not a desired workaround. 

 

Power BI is not displaying the data correctly using the R Script even though this was tested externally. Power BI is blocking/limiting the size of the histogram - do you know why?

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.