Forum Discussion
How to lock width stacked bar chart visual
- 11 months ago
Thankyou, MasonMA , Shahid12523 for your response.
Hi finley0726,
We appreciate your inquiry submitted through the Microsoft Fabric Community Forum.
Based on my understanding of the scenario, we followed the approach below, using a sample dataset, to ensure that the stacked bar chart maintains a constant width regardless of slicer selections:
- Create a helper table named SingleBar with a single row labelled All Reviews and use this as the Y-axis.
- Create measures such as Review Count, Review Percent and Review Label, and then build a stacked bar chart.
- In the Format pane, navigate to X-axis and set Minimum = 0 and Maximum = 1. Enable Data labels.
Locking the X-axis to the range 0–1 ensures that the bar always renders at full width. The segments resize proportionally when slicers are applied, but the overall bar length remains unchanged.
Please find attached a screenshot and a sample PBIX file that may help resolve the issue:
We hope the information provided helps to address your concern. Should you have any further queries, please feel free to contact the Microsoft Fabric Community.Thank you.
Hi finley0726,
We are following up to see if what we shared solved your issue. If you need more support, please reach out to the Microsoft Fabric community.
Thank you.