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
ThePiecesFit
Advocate III
Advocate III

How can I make the percentage of column total show up in a bar chart?

I'd like to show percentages instead of counts on the bar chart, like this. 

 

Annotation 2020-05-18 184527.jpg

 

I tried this formula, but it's not calculating per quarter

% opp count per FQ =
DIVIDE(
COUNT(Sheet1[Opportunity Count]),
CALCULATE(COUNT(Sheet1[Opportunity Count]),ALLEXCEPT(Sheet1,Sheet1[Deal Size bucket]))
)
 
Also, I need this to work with filters. Is that possible? 

Here's a dummy .pbix 
https://drive.google.com/file/d/1jVgq4evyqQOz1xFo18kAwfWCnUn1-oxi/view?usp=sharing
1 ACCEPTED SOLUTION

I got someone to help me. The answer was 

% opp count per FQ =
DIVIDE(
CALCULATE(SUM(Sheet1[Opportunity Count]),
     ALLEXCEPT(Sheet1,Sheet1[Deal Type],Sheet1[Quarter],Sheet1[Deal Size bucket]))
,

CALCULATE(sum(Sheet1[Opportunity Count]),
     ALLEXCEPT(Sheet1,Sheet1[Deal Type],Sheet1[Quarter]))
)

View solution in original post

3 REPLIES 3
VasTg
Memorable Member
Memorable Member

@ThePiecesFit 

I moved the % mesuare to "Value" and the report shows % per quarter.

image.png

 

Do you want to keep the count as value but just display the % as labels? Your ask is not clear, please elaborate.

 

If it helps, mark it as a solution

Kudos are nice too.

Connect on LinkedIn

@VasTg Sorry it was unclear. The column "% of opp count per FQ" is the formula I made and it's incorrect. The correct percentage for the first column should be 30%. There are four light blue columns, and a total of 10 units for Q1 FY20. The first coumn is 3, so it's 3/10, or 30% odf that quarter. Like this

 

Annotation 2020-05-19 103452.jpg

 

I got someone to help me. The answer was 

% opp count per FQ =
DIVIDE(
CALCULATE(SUM(Sheet1[Opportunity Count]),
     ALLEXCEPT(Sheet1,Sheet1[Deal Type],Sheet1[Quarter],Sheet1[Deal Size bucket]))
,

CALCULATE(sum(Sheet1[Opportunity Count]),
     ALLEXCEPT(Sheet1,Sheet1[Deal Type],Sheet1[Quarter]))
)

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.