Percentage data labels in stacked column chart without converting to 100% stacked column chart

I’ve searched around and not found a solution to this issue so I’m wondering if it is possible to do.

When I select a brand, I’d like the data labels to show the % of total sales within the selected brand for a stacked column chart:

Measure for above chart:
MAT Sales = CALCULATE( [Sales Total], DATESINPERIOD('Dates'[Date],LASTDATE('Dates'[Date]),-1,YEAR) ) // To get the Moving Average Total Sales TY

For example, in year 2020, the bottom column (dark blue) label is showing as 49% rather than 1,351K
And this is without the column chart displaying like a 100% stacked column chart:
I’ve seen some solutions around that involve creating a measure and putting it in as a tooltip but this is not what I’m after.

I’m not sure this is possible as the data label is reflecting the actual value and the value, if used converts the chart to a 100% stacked.

My measure that creates a 100% stacked

MAT Sales % Of Products Within Brand = DIVIDE( [MAT Sales] , [MAT Sales ALL Products Within Brand] , 0) // % of total MAT Sales within the selected brand

Appreciate any ideas and thoughts, thanks.

Tim

Hi @Timmay, we aim to consistently improve the topics being posted on the forum to help you in getting a strong solution faster. While waiting for a response, here are some tips so you can get the most out of the forum and other Enterprise DNA resources.

  • Use the forum search to discover if your query has been asked before by another member.

  • When posting a topic with formula make sure that it is correctly formatted to preformatted text </>.

image

  • Use the proper category that best describes your topic
  • Provide as much context to a question as possible.
  • Include the masked demo pbix file, images of the entire scenario you are dealing with, screenshot of the data model, details of how you want to visualize a result, and any other supporting links and details.

I also suggest that you check the forum guideline How To Use The Enterprise DNA Support Forum. Not adhering to it may sometimes cause delay in getting an answer.

Please also check the How To Mask Sensitive Data thread for some tips on how to mask your pbix file.

I do not advise this, as generally end-users will expect a bar chart like this to show dollar or quantity amounts, not percentage of amount.

However, it is possible to change your measure value to show as % of Grand Total:
image

but be aware, this will change the y-axis to a percentage:

1 Like

Hi @Timmay, did the response provided by @Heather help you solve your query? If not, how far did you get and what kind of help you need further? If yes, kindly mark as solution the answer that solved your query. Thanks!

Hi @Timmay, we’ve noticed that no response has been received from you since the 14th of March. We just want to check if you still need further help with this post? In case there won’t be any activity on it in the next few days, we’ll be tagging this post as Solved.

Hi @Timmay, a response on this post has been tagged as “Solution”. If you have a follow question or concern related to this topic, please remove the Solution tag first by clicking the three dots beside Reply and then untick the check box.

We’ve recently launched the Enterprise DNA Forum User Experience Survey, please feel free to answer it and give your insights on how we can further improve the Support forum. Thanks!