Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi there,
I have a small dataset with just 80 datapoints and I am trying to plot a histogram with a normal distrubution curve on top of it. When I run the following code in Jupyter notebook, I got a nice distribution of the values. (first photo)
However, when I run the same code in Power BI using the Python visual, I get a totally different histogram. I checked populating a table with the data I am using for the histogram which seems correct, so the data in Power BI is correct but for some reason the visual doesnt depict the same data.Does anyone know why this is happening?
Also, if I dont filter out the one negative value in the dataset, the histogram seems to be pretty close to the actual result but as soon as I filter the one record with the negative value, the histogram changes completely in values.From Jupyter Notebook
With the negative record
without negative record
Code:
please provide the sample dataset.
User | Count |
---|---|
73 | |
70 | |
38 | |
24 | |
23 |
User | Count |
---|---|
96 | |
94 | |
50 | |
42 | |
40 |