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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.