Quantcast
Channel: MSDN Blogs
Viewing all articles
Browse latest Browse all 5308

R-Density Plot (Histrogram) for a Power BI Performance Baseline

$
0
0


install.packages(“ggplot2”)

install.packages(“scales”)

just drag the duration column of your dataset to the R-Chart Control in Power BI and add the following code into your R-Control:

library("ggplot2")

library("scales")

ggplot(dataset)+

geom_histogram(binwidth=500,aes(x = duration/1000, y = ..ncount..)) +

scale_y_continuous(labels = percent_format())


you can also try changing the binwidth and filter out very fast queries with a power BI filter.


Viewing all articles
Browse latest Browse all 5308

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>