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
Anonymous
Not applicable

Issue in Stacked column chart

How can I show count of contents of a column as percentage in Y-axis and as a Integer in data labels of the bar in stcked cloumn chart. Pleasee help.

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

HI  @Anonymous 

You may try this way as below:

Use combo chart: Line and Stacked column chart.

For column part, you could do it same with Stacked column chart.

For line part, you could create a percentage measure.

Then in Format ->Y axis, Disable "Y-axis(Column)" and enable "Show secondary" and change "Position" to "Left".

 

Regards,

Lin

Community Support Team _ Lin
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

3 REPLIES 3
v-lili6-msft
Community Support
Community Support

HI  @Anonymous 

You may try this way as below:

Use combo chart: Line and Stacked column chart.

For column part, you could do it same with Stacked column chart.

For line part, you could create a percentage measure.

Then in Format ->Y axis, Disable "Y-axis(Column)" and enable "Show secondary" and change "Position" to "Left".

 

Regards,

Lin

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

AllisonKennedy
Super User
Super User

You can play with the data labels and axis settings (especially if you are using the 100% stacked column), or you can use the 'tooltips' feature of the stacked column chart and add the integer value to the stacked column tooltips field in the visualizations pane and the percentage to the value field in the vizualization. If you don't have these in the data table already, you can create them as MEASURES using DAX.

 

Has this post solved your problem? Please mark it as a solution so that others can find it quickly and to let the community know your problem has been solved. 

 

If you found this post helpful, please give Kudos.

I work as a trainer and consultant for Microsoft 365, specialising in Power BI and Power Query. 

https://sites.google.com/site/allisonkennedycv


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

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.