Forum Discussion
Problem Creating Box plot with R (wrong mean and median)
I am not sure if we are allowed to bump messages. I would appreciate some help, even if it means posting this in a different forum. Thanks!
- j-murray3 years agoFrequent Visitor
FYI boxplots do not display means! The lines in the boxplots you posted are the medians of each group and each box stretches between the 1st and 3rd quartiles of your data. So, first thing I'd suggest is checking if some medians you calculate in your data are matching up with the boxplots. If you're finding the box plots are still not lining up with your expectations, the only Power BI element I could see contributing to the issue is if you're summarizing the fields you added to the visual or something. You could also just build the plot in R (outside of PBI) and see if they are the same to confirm whether PBI is affecting the output.
Hope this helps!