Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

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.

  • 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

3 Replies

  • AllisonKennedy's avatar
    AllisonKennedy
    Community Champion

    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

  • v-lili6-msft's avatar
    v-lili6-msft
    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