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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
wmalgal
New Member

Dynamically change the stacked bars

Chart.png

 

Hi All,

Im new to Power BI.  I am trying to set up a stacked bar chart as shown above.  So thats number of people hired (offers accepted) per month and the stacked bars show the break down per busines unit.

 

Is there a way of having a selection box where i can say.. ok show same data but i want the stacked bars broken down by gender hired not by business unit?

 

Hope ive been clear enough.

 

Thanks,

A.

1 ACCEPTED SOLUTION
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @wmalgal,

 

If I understanding correctly, you want to dynamically switch the legend between [Business Unit] and [Gender] in this stacked bar chart via a selection box, right?

 

However, this is not a supported feature. To work around your requirement, you can add [Gender] and [Date] fields to axis, add [Business Unit] field to legend. When you want to see details about Gender, click the highlighted down arrow to drilldown the chart.

3.PNG

 

Best regards,
Yuliana Gu

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

View solution in original post

2 REPLIES 2
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @wmalgal,

 

If I understanding correctly, you want to dynamically switch the legend between [Business Unit] and [Gender] in this stacked bar chart via a selection box, right?

 

However, this is not a supported feature. To work around your requirement, you can add [Gender] and [Date] fields to axis, add [Business Unit] field to legend. When you want to see details about Gender, click the highlighted down arrow to drilldown the chart.

3.PNG

 

Best regards,
Yuliana Gu

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

Thanks for this - really appreciated!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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