Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
ttam110
Frequent Visitor

Column Series / Legend as a Percent of Column Itself?

 

Hi,

In the screenshot below, I'm trying to overlay "Persona" penetration in a particular product. 

 

So for instance, on the axis I have the Product's penetration (e.g. % of grand total) but in the Legend / Column Series field, I have the Persona. Unfortunately. the percentages come up in the graph as follows: 

 

  1.  % = (Total Product 1, Persona A) / (Total Product)

 

'm looking for...

 

  1. % = (Total Product 1) / (Total Persona A)
  2. % = (Total Product 1) / (Total Persona B)
  3. % = (Total Product 1) / (Total Persona C)

Any ideas how I can achieve this? 

16 REPLIES 16
ttam110
Frequent Visitor

Update: maybe this is a better represnetation https://i.imgur.com/QjtEXBa.png

Hi,

 

Share the link from where i can download your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi, here’s a link

https://www.dropbox.com/s/muv2a2rugmloujv/Dashboard%20Example.zip?dl=1

Here’s also a visual explanation of why I’m trying to accomplish: https://i.imgur.com/QjtEXBa.png

Hi,

 

It works fine.  Here is the result i got.  You may download my file from here.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks! Have spent hours solving this, and this finally worked!

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Quick question. Is there a way to omit blanks? I have in one country where 50% of responses are "blanks" and I don't want them to be counted at all. 

Hi,

Share some data to work with and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi again, 

 

I managed to fix it by using the ALLSELECTED and use filters to remove blanks. 

 

But thank you. 

Wow, thanks -- this is what I was looking for. The only "issue" is that I lose the product penetration on the y-axis (% of customer grand total)

You are welcome.  What do you mean by "I lose the product penetration on the y-axis (% of customer grand total)"??


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

On the y-axis, I wanted to display the % of total customers that were on that product. That is, SUM (Customers with product A) / SUM(All Customers).

 

Note that on your file you sent, the % on the y-axis are different than what I originally had.  Unfortunately I'm not sure if it is possible given the structurre that I am seeking -- but I really appreciate your help

Hi @ttam110

It is not possible to add the data as your picture. Here is a workaround

Change to Line and stacked column chart.

Create measures

sum per product = CALCULATE(COUNT(Dup[Product]),ALLEXCEPT(Dup,Dup[Product]))

all product = CALCULATE(COUNT(Dup[Product]),ALL(Dup))

% of customer grand total = [sum per product]/[all product]

add [ % of customer grand total] to line values.

5.png

 

 

Best Regards

Maggie

Hi,

 

That is not possible.  If my previous reply helped, please mark it as Answer.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Ashish_Mathur
Super User
Super User

Hi,

 

Something like this

 

=SUM(Data[Value])/CALCULATE(SUM(Data[Value]),ALL(Data[Product]))

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

HI there,

 

I created that measure, but not sure how this would help? If I use it column values, the calculatations are not right...

 

Measure 2 = sum(Table[Customer ID])/CALCULATE(Sum(Table[Customer ID]),ALL(Table[Product]))

thanks for your time 

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.