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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
angelojoseph17
New Member

Calculating overal percentages from certain values in a column.

Hey all , 

 

Fairly new to power bi. 

I have a colum called hrs which lists the number of hours. 

hrs.JPG

 

The values in this column ranges from 0-80.

I essentailly want to create a visual showing percentage of rows in that colum which are less than or equal to 1. 

I was going to use a pie chart to demonstrate this. 

Is anyone available to point me in the right direction of doing this. 

 

Thanks. 

 

1 ACCEPTED SOLUTION
Eric_Zhang
Microsoft Employee
Microsoft Employee

@angelojoseph17

You can try to create a calculated column and use it as the legend of the bar chart. In the Values field, set count of category.

 

category = IF('Table'[HRs]>1,"More than 1 Hour","Less than 1 Hour")

Capture.PNG

View solution in original post

2 REPLIES 2
Eric_Zhang
Microsoft Employee
Microsoft Employee

@angelojoseph17

You can try to create a calculated column and use it as the legend of the bar chart. In the Values field, set count of category.

 

category = IF('Table'[HRs]>1,"More than 1 Hour","Less than 1 Hour")

Capture.PNG

Greg_Deckler
Community Champion
Community Champion

You can switch the Detail labels to have a Percent of total label style and perhaps do binning or grouping to group 0 and 1?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors