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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
busybee
Helper I
Helper I

Percentage of grand total in parentheses

I have a 100% clustered column chart. In the Values section, I have a column set to '% of grand total'. When I hover over my chart, it shows 2 percentages, one outside parenthesis and the other in parentheses. The percentage in parentheses is what I am looking for. Any suggestions on how to display only the percentage in parentheses?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @busybee ,

 

So you wanna get a result as beow?

Annotation 2020-06-29 084620.png

Create a calculated column as below:

 

Column = DIVIDE('Table'[Visitor],SUMX(FILTER('Table','Table'[Date]=EARLIER('Table'[Date])),'Table'[Visitor]))

 

Here is the .pbix file.

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

View solution in original post

8 REPLIES 8
Anonymous
Not applicable

Hi @busybee ,

 

Do you wanna get a result as shown in below pic?

Annotation 2020-06-26 095700.png

If so ,you can create a calculated column as below:

 

Column = DIVIDE('Table'[Visitor],SUMX(ALL('Table'),'Table'[Visitor]))

 

Or a measure as below:

 

Measure 2 = DIVIDE(SUMX(FILTER('Table','Table'[City]=MAX('Table'[City])),'Table'[Visitor]),SUMX(ALL('Table'),'Table'[Visitor]))

 

For details,pls click here to check my sample .pbix file.

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

The percentage in the parentheses seems to be correct. How do I only display the percentage in parentheses(28.33 %) and not 6.62 %?

Anonymous
Not applicable

Hi  @busybee ,

 

So you wanna get a result as beow?

Annotation 2020-06-29 084620.png

Create a calculated column as below:

 

Column = DIVIDE('Table'[Visitor],SUMX(FILTER('Table','Table'[Date]=EARLIER('Table'[Date])),'Table'[Visitor]))

 

Here is the .pbix file.

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

If I don't want to show values in paranthesis, how to do that
In my PBI, it's showing as 92.8% (100 %)
I don't wnat to show (100%)

The formula mentioned above does not work with a combination of positive and negative values. I have attached a Sample Power BI dashboard. 

 

https://drive.google.com/file/d/1CZh5WPWqz5BK0txFkC8HabsjAAfs58xT/view?usp=sharing 

 

In this dashboard, Col1 is the axis, Col2 is the legend and Col3 contains the values. Any suggestions on how to resolve this with a combination of positive and negative values? 

I have a combination of negative and positive values in the column corresponding to the Visitors column in my Power BI  file. The percentage displays correctly on one of the bars but incorrectly on the other bar. Could this be because I have a combination of negative and positive values in the column corresponding to the Visitors column in my Power BI  file? 

I just created a Temp Table filtered with only the positive values of the field utilized as value. I created a similar chart and the percentages match. 

parry2k
Super User
Super User

@busybee you can create our custom tooltip, read this post

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop shop for Power BI related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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