简体   繁体   中英

Split x axis for every value in graph, in Power BI

I have the following graph in Power BI:

我的图表截图

and I'm trying to recreate the below graph from Excel (note the X axis with the months February and January, with the Operation Text :

excel图表截图

As you can see, my attempt only displays the Operation Text rather than the month and Operation Text ).

Here is what my current axis looks like:

轴截图

Changing the axis to have Actual Start Date on top, rather than the Operation Text :

顶部带有开始日期的轴

Makes my graph look like this:

坐标轴变化后的图形

Is it possible to achieve the same outcome as in Excel, with the values in my graph showing the two months side by side, for each operation text? If so, how can I do this?

I've tried looking into the X axis 'format' settings and wasn't able to see anything obvious to help achieve this. In addition, unfortunately the graph I'm looking to recreate is only a screenshot so I am unable to see how it achieves that outcome.

EDIT:

As suggested, I attempted to place Operation Text into the Legend field in my Visualisations section but I am unable to, due to the fact that I have two Value fields (the two columns Actual Hours and Estimated Hours ).

@CR7SMS is correct. You just need to expand down to the next level using that split arrow in the upper right of the visual so that this:

顶层

Becomes this:

第二级

Note that to get the axis to look like this, you'll need to sort on month rather than one of the measures.

种类

You'll also want to turn off 'Concatenate labels' toggle in the 'Format > X axis' section of the visual settings.

格式化 X 轴

You would have to drill down one level, using the arrows seen at the top right of your first screenshot. For your specific purposes, the split arrow should do the trick. Hope this helps.

Have you tried moving your date or operation text column in legend section ?..not 100% but something close to your requirement you can achieve

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM