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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
CarolynM
New Member

Counting rows containing a percentage and grouping

I have a table that contains a column with '% Complete' - which tracks progress of a task. I want to display, in a stacked column chart, how many tasks are within a range of 0-25%, 26-50%, 51-75% , 76-100%. 

 

I have used the below formulas but can't seem to achieve what I need.

 

Form Progress 0-25% = COUNTROWS(FILTER('Master List', 'Master List'[% Complete]=0-0.25))

Form Progress 26-50% = COUNTROWS(FILTER('Master List', 'Master List'[% Complete]=0.26-0.5))

Form Progress 51-75% = COUNTROWS(FILTER('Master List', 'Master List'[% Complete]=0.51-0.75))

Form Progress 76-100% = COUNTROWS(FILTER('Master List', 'Master List'[% Complete]=0.76-1))

 

Would appreciate some help please! 

1 ACCEPTED SOLUTION
dharmendars007
Solution Sage
Solution Sage

Hello @CarolynM , 

 

Please try the below revsied code i have modified the same using your code..

 

Form Progress 0-25% = COUNTROWS(FILTER('Master List', 'Master List'[% Complete] >= 0 && 'Master List'[% Complete] <= 0.25))

Form Progress 26-50% = COUNTROWS(FILTER('Master List', 'Master List'[% Complete] > 0.25 && 'Master List'[% Complete] <= 0.5))

Form Progress 51-75% = COUNTROWS(FILTER('Master List', 'Master List'[% Complete] > 0.5 && 'Master List'[% Complete] <= 0.75))

Form Progress 76-100% = COUNTROWS(FILTER('Master List', 'Master List'[% Complete] > 0.75 && 'Master List'[% Complete] <= 1))

 

Alos am curious to know the error you are getting on the visual when you were trying 

 

If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes 👍 are much appreciated!

 

Thank You

Dharmendar S

LinkedIN 

View solution in original post

2 REPLIES 2
CarolynM
New Member

Thank you @dharmendars007 !! That worked perfectly. 

The formula I was previosuly trying to use was telling me I had too few arguments. 

 

I've only started using Power BI in the last week, so very new at it! 

dharmendars007
Solution Sage
Solution Sage

Hello @CarolynM , 

 

Please try the below revsied code i have modified the same using your code..

 

Form Progress 0-25% = COUNTROWS(FILTER('Master List', 'Master List'[% Complete] >= 0 && 'Master List'[% Complete] <= 0.25))

Form Progress 26-50% = COUNTROWS(FILTER('Master List', 'Master List'[% Complete] > 0.25 && 'Master List'[% Complete] <= 0.5))

Form Progress 51-75% = COUNTROWS(FILTER('Master List', 'Master List'[% Complete] > 0.5 && 'Master List'[% Complete] <= 0.75))

Form Progress 76-100% = COUNTROWS(FILTER('Master List', 'Master List'[% Complete] > 0.75 && 'Master List'[% Complete] <= 1))

 

Alos am curious to know the error you are getting on the visual when you were trying 

 

If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes 👍 are much appreciated!

 

Thank You

Dharmendar S

LinkedIN 

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.