Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
I am new in this community. I am transferring some python codes into a power BI project in order to share with my colleagues. I put together a code to plot the cumulative sum of certain curves with fill colors in between. I transfer it ito power BI and the result is not what it should be expected (the code run fine on my jupyter notebook however). see below the
result
expected (from jupyter notebook
maybe I am pushing too much the limits, however is there anything I should consider?
Hi @flapponi,
Without seeing your code or data I can only speculate, but it's highly likely that your dataset is being aggregated to distinct values by Power BI, which is it's default behaviour (vs. tools like Jupyter, which take a dataset as-is and process row-by row). You can confirm this by clicking the visual header and selecting Show as a table, which will likely confirm that you have less total rows in your visual than in your dataset.
The simplest solution is to add a column to your dataset that will ensure Power BI creates the desired level of granularity for your data frame in Python. This approach is written up in longer form (with illustration of the concept) here; while this post focuses on a specific visual, the approach is portable for any visual that needs the lowest level of grain possible. We've also discussed this consideration for another tool external to Power BI vs. internally here, which again uses this approach and may help clarify further.
If this approach does not solve, you may need to provide further information on your dataset for us to help further.
Regards,
Daniel
Proud to be a Super User!
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
Hi ,
txs for yuor prompt answer! the dataset seems to be correct. I have plotted using a bar chart with continuous axis and I get the desired result (see image below). however this visual has a very annoying limitation as it seems not to allow to sort the axis value according to your prreference (ascending or descending).
Interestingly adn surprisingly, this is only allowed using categorical y axis type!?!? but this visual is not really necessary as there are way toomany categories in this way and I would eneed to downsample my data (the y axis is technically a continuous data type)
I'll see the best way to share a subset of my data and code for a test if you like to.
Txs again and regards
Fabio
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.