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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Count of rows in each column that reflects the count of another row column data

WhatsApp Image 2021-08-20 at 21.43.21.jpegGuys, I want to create a measure. In the above pic, you can see Sprint number column and category and count(id) column. so the required measure is, for each sprint number I want the total count of category. there you can see for 331 sprint numbers, in category punted issues, issues added, completed issues, issues not completed there are of total count in count(id) column is 11+5+1+14=31. so I need a measure like for 331 there is a total of 31 issues, for next 338 there ---- issues. I need a measure like this .counting of category for each sprint number. Not Only measure . how It can be achieved

2 ACCEPTED SOLUTIONS
selimovd
Super User
Super User

Hey @Anonymous ,

 

from your example I understood that you want the sum of COUNT(ID) by SPRINT_NUMBER, is that right?

The following measure should do that:

Count per Sprint =
CALCULATE(
    SUM( myTable[COUNT(ID)] ),
    ALLEXCEPT(
        myTable,
        myTable[SPRINT_NUMBER]
    )
)

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

View solution in original post

Hey @Anonymous ,

 

did it work with the measure I proposed?

I'm curious if you could solve this issue 🙂

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

View solution in original post

2 REPLIES 2
selimovd
Super User
Super User

Hey @Anonymous ,

 

from your example I understood that you want the sum of COUNT(ID) by SPRINT_NUMBER, is that right?

The following measure should do that:

Count per Sprint =
CALCULATE(
    SUM( myTable[COUNT(ID)] ),
    ALLEXCEPT(
        myTable,
        myTable[SPRINT_NUMBER]
    )
)

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

Hey @Anonymous ,

 

did it work with the measure I proposed?

I'm curious if you could solve this issue 🙂

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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