cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dave64164624
Frequent Visitor

Replicating Excel combo chart (bar/line) with different X axis

I have in Excel a bar/line combo chart as below. As you can see, the line chart shows only one point as there is 1 data point in the line series vs 4 points in the bar series.

dave64164624_0-1622558692711.png

 

In Power BI, I have data like this:

dave64164624_1-1622558931062.png

But, the closest I can get as far as the chart is this:

dave64164624_2-1622558960832.png

As you can see, there is a gap between the bars as they share an X axis and there is no bar for the middle date. I know there is no way to do multiple X axis in PBI, but is there a good workaround? 

 

The line chart dot is actually going to be a calculated rolling average value to help you better understand the use case. The customer wants this average to be a dot in the middle of the chart.

 

3 REPLIES 3
parry2k
Super User
Super User

@dave64164624 Hmmm not sure if there will be always a middle, in your sample example data, you have 4 dates for the bar, and if we have to plot point for line chart based on average, it is going to be on top of one of the data bar data point to avoid that empty space. I hope you understood what I'm trying to say. If the count of bars is an odd number then it can be the middle of the chart but not otherwise. 






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





parry2k
Super User
Super User

@dave64164624 is it always going to be in the middle of the chart?






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





Yes, it will always be in the middle. 

Helpful resources

Announcements
May 23 2022 epsiode 5 without aka link.jpg

The Power BI Community Show

Welcome to the Power BI Community Show! Jeroen ter Heerdt talks about the importance of Data Modeling.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through June10th!

Power BI Dev Camp Session 22 without aka link and time 768x460.jpg

Check it Out!

Watch Session 22 Ted's Dev Camp along with past sessions!

Power BI Release May 2022 768x460.png

Check it out!

Click here to read more about the May 2022 updates!

Top Kudoed Authors