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
0xygen27
Advocate II
Advocate II

Double X axis drill down

Dear Community, 

 

I got a power BI document but I can't get 2 X axis.

 

here is the kind of data model I got and the graph I want.

I got a colum for dates 2014-2020, expense A, Expense B, expense C.

Expense A, B,C are all part of project A. So I want a graph with Project A, B, C ,D and when I drill down I want to see the expenses that are part of project A. 

I made a sketch to illustrate how I want it.

 

Data model.pngGraph 2 x.png

3 REPLIES 3
v-yuezhe-msft
Employee
Employee

@0xygen27,

I don’t see the relation between expenses and projects in your data model. Based on your description, I make a test using the following sample table.
1.PNG

In Power BI Desktop, the closed chart we can create is a clustered column chart or stacked column chart. You can put Date and Project(or Expense) into Axis, then put Expense(or Project) into Legend, this way, when you drill down to next level of X-Axis, you can see all the expenses that are part of each project. For more details, please review the screenshots below.
2.PNG3.PNG


Regards,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Dear Lydia Zhang,

 

If I just want 2 values on the X axis how can I do that? 

 

So I want to have an X axis with: 

 

Years  and Groups(which the expenses belong in) 

 

So it's like 

2014 - 2015 -2016 -2017 | 2014-2015-2016 -2017

Group A                                         Group B

 

@0xygen27,

The most closest thing in Power BI Desktop is to right-click on the bar and select "Expand to next level" to drill down and show both year and group in X Axis .

1.PNG2.PNG



Regards,

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.