Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
jbe
New Member

Two Axis for Clustured Bar/Column Chart

I would like to use the clustured bar chart with 2 x-axis. I use these charts with exactly two "Value" set.

I have seen that a secondary axis is supported by Combo charts but not for the chart I need it for.

 

Background info: I show the feature usage of an application within this chart. I get two values per feature: UserCount (how many user used this feature at least once) and the total usage count. I could show this information in two different diagrams but it has advantages if they are shown together in one clustered bar chart diagram. This way it is easy to see that the most used feature might not be the feature that most users used at least once.

 

Is there a way to achieve this?

 

BarChart.png

6 REPLIES 6
Anonymous
Not applicable

Hi @jbe ,

 

You can use a custom visual like below for the Dual X-axis on the Clustered Bar Chart.

 

Dual X-axis on the Clustered Bar chart with PBIVizEdit.comDual X-axis on the Clustered Bar chart with PBIVizEdit.com

 

Dual X-axis on the Clustered Bar chart with PBIVizEdit.comDual X-axis on the Clustered Bar chart with PBIVizEdit.com

 

Download link for the custom visual file on this page

https://pbivizedit.com/gallery/dual-x-axis-bar-chart 

 

This was made with our Custom Visual creator tool PBIVizEdit.com. With this tool,

  •  anyone, irrespective of technical skills, can create their own visuals
  • 15 minutes to create a visual from scratch
  • opens up many additional attributes to edit (for e.g. labels, tooltips, legends position, etc)

Give this a shot and let us know if you face any problems/errors.

You can use the editor to modify your visual further (some modifications cannot be done in the Power BI window and have to be in the editor).

Thanks,

Team PBIVizEdit

Greg_Deckler
Super User
Super User

It looks like you have it displayed there in your image, You might try it as a line and column chart, that will typically give you 2 axis. What is the second axis for? Does it normalize the data somehow or how does it look different than below?

 

You could always check out the custom visuals or use an R or Python visual.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

I need the second x-axis just to normalize the data. Count is always much more than UserCount. Without a separate axis it is very difficult to read / interpret the UserCount columns.

 

I tried the line and column chart but the line is the wrong visualization type for this data. I set the line stroke to 0 and enabled the visualization of the data points. But the result was not good. The data points were hard to read. Count and UserCount should be shown as columns.

 

Creating custom visuals or R/Python visuals is beyond the effort I have planned to invest.

HI @jbe,

 

AFAIK, current power bi not contain visual who suitable for your requirement, I'd like to suggest you to use r visual to manually draw graph with multiple axises.

 

If you are not familiar with r script, you can also consider to write a measure to modify unit. 

count of column(10x) =
COUNT ( table[column] ) / 10

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

I understand that there is no easy solution for my requirement. I'm not familiar with R Visual and I cannot modify the unit (e.g. show Bars in % with the highest one = 100%) as we need the absolute numbers.

 

Thanks for the help.

Hello,

 

I have a similar problem. 

I also would like two axis in a column chart.

I want to split my data by region and by date. 

 

I don't seem to be able to do both at the same time, as I did on Excel.Capture.PNG

 

Thank you for your help,

Solene 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.