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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
Chanleakna123
Post Prodigy
Post Prodigy

%Percentages Contribution between 2 lines based on filtering

hi all , i need your support , currently i am using below formula to have a %Percentages 100% out of this 2 lines chart , but when i filter Category or sub category , the result of both turn out less than 100% , which only 60% or 50% as of total , i think sth wrong with this calculation , what we want is , to have %Contribution = 100% based on whatever we filter above. 

 

 

Capture 1.PNG

1 ACCEPTED SOLUTION

@Chanleakna123 

Since the legend is on Company try this.

% Contribution = DIVIDE(SUM(Canadean[Value]),CALCULATE(SUM(Canadean[Value]),ALL(Canadean[Company])))

View solution in original post

7 REPLIES 7
jdbuchanan71
Super User
Super User

@Chanleakna123 

Where you want the ALL for your divide is on the field that is in the Legend of the chart.  For example, if the legend is on Region it would be like this.

% Contribution Updated = DIVIDE(SUM(Canadean[Value]),CALCULATE(SUM(Canadean[Value]),ALL(Canadean[Region])))

 The charts on the right use the updated measure and always add up to 100% even with filters applied

jdbuchanan71_0-1596261054424.png

 

jdbuchanan71_1-1596261099657.png

 

Fowmy
Super User
Super User

@Chanleakna123 

Can you share more information on this issue, better attach a sample PBIX file?

What is the legend of the chart ? are there any other measures here? 

________________________

Did I answer your question? Mark this post as a solution, this will help others!.

Click on the Thumbs-Up icon on the right if you like this reply 🙂

YouTube, LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

hi @Fowmy  , Legend is Column Name : Company . 

which is from raw data , no measure there 

@Chanleakna123 

Since the legend is on Company try this.

% Contribution = DIVIDE(SUM(Canadean[Value]),CALCULATE(SUM(Canadean[Value]),ALL(Canadean[Company])))

@jdbuchanan71  Brilliant , 

 

thanks you so much . 

@Chanleakna123 

Can you share some sample data? Also, mention the visual you are using here.

________________________

Did I answer your question? Mark this post as a solution, this will help others!.

Click on the Thumbs-Up icon on the right if you like this reply 🙂

YouTube, LinkedIn


Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

hi @Fowmy  , the data are in connected to each other 😞 

Capture 2.PNG

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.