Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello everyone,
Maybe someone can give me an idea how to create a compact histogram in Power BI like following:
I have a lot of consumption values which i assign to different categories like
and so on...
-5.0 to -2.5 Percent
-2.5 to 0 Percent
0 to 2.5 Percent
2.5 to 5.0 Percent
and so on...
When I use this categories for the x-axis i get something like that:
Two difficulties:
- Sorting because the categories are in type text
- It is not compact and i have to scroll because there are to many categories
The sorting problem i could maybe solve by creating a new column with numbers and assign to the categories. But how can i represent the categories without scrolling at the end? I dont see a possibility to move the columns together. Maybe there are appropriate visuals to do things like that?
Many thanks for ideas.
Hi @v-cgao-msft
many thanks for your response. I was thinking about python. Are there some suitable / helpful sides with python codes for histograms? Otherwise i will search.
Hi @Pikachu-Power ,
Here:
Create Power BI visuals using Python in Power BI Desktop - Power BI | Microsoft Learn
Using Python Visuals in Power BI - AbsentData
Histograms — Matplotlib 3.8.2 documentation
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum -- China Power BI User Group
I have 222,000 rows in my dataset. Does the limitation of 150,000 rows are also valid for histogram??
When i try bar plot my calculation exceeds five minutes and run into time out. But for histogram it seems to work and i get no message. So i dont know if there is a mistake in my results.
Hi @Pikachu-Power ,
I've done some testing and can't seem to get rid of the column chart gaps.
Consider use some custom visuals:
Business Apps – Microsoft AppSource
Templates | Deneb (deneb-viz.github.io)
Example Gallery | Vega-Lite
Histogram Example | Vega
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum -- China Power BI User Group
Try to use small multiples - https://learn.microsoft.com/en-us/power-bi/visuals/power-bi-visualization-small-multiples
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
105 | |
79 | |
68 | |
63 |
User | Count |
---|---|
148 | |
107 | |
106 | |
82 | |
70 |