March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
I am using a 100% Stacked bar chart, together with separate "total%" of it:
I have played around with the Y-axis: max area width, but as we can only play around with the MAX width, and cannot FIX it, I am facing problems when I am breaking down on different dimension, e.g.:
The detailed chart starts before the Total when Y axis label is shorter:
The detailed chart starts after the Total when Y axis label is longer:
This problem is based on the assumption of: We can only play around with the MAX width of Y-axis label, and cannot FIX it.
Is there any way to FIX this width - so I know exactly where the viz starts, and align the Total chart ?
Thanks.
Solved! Go to Solution.
Hi @Saniat
Create a disconnected table with all the categories and a row with the total:
Then add the following metric:
Total values =
SWITCH (
TRUE (),
SELECTEDVALUE ( 'Table (2)'[Cat] ) = "Total", SUM ( 'Table'[Value] ),
CALCULATE (
SUM ( 'Table'[Value] ),
FILTER ( 'Table', 'Table'[Cat] IN DISTINCT ( 'Table (2)'[Cat] ) )
)
)
Now use this metric and the new table on the visual.
If you want you can add a sort id on the table so you have the values of the category in the correct order.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Saniat
Create a disconnected table with all the categories and a row with the total:
Then add the following metric:
Total values =
SWITCH (
TRUE (),
SELECTEDVALUE ( 'Table (2)'[Cat] ) = "Total", SUM ( 'Table'[Value] ),
CALCULATE (
SUM ( 'Table'[Value] ),
FILTER ( 'Table', 'Table'[Cat] IN DISTINCT ( 'Table (2)'[Cat] ) )
)
)
Now use this metric and the new table on the visual.
If you want you can add a sort id on the table so you have the values of the category in the correct order.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsMarch 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |