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

How to calculate Average for non-numeric fields

I have 1 year Jira data which has all the Bugs, Builds, Tasks (Issue_type) for each Project. Now i need to calculate the Average number of bugs for project in Quarter 1, Quarter 2, Quarter 3 Quarter 4.  , How to calculate the average. I need to do something like, for all the project in Quarter 1 Calculate how many Issue_Type = bug for each project and then divide by number of Projects in that Quarter. This will give me average number of bugs in each quarter.

 

Average.PNG

1 ACCEPTED SOLUTION
AlB
Community Champion
Community Champion

Hi @Anonymous 

1. You need a 1-to-many relationship between the Quarter table (shown right) and the data table (shown left) thru Project name

2. Place QuarterTable[Quarter] in the rows of a matrix visual

3. Place this measure in the visual:

Measure =
DIVIDE (
    CALCULATE ( COUNTROWS ( Table1 ), Table1[issue type] = "Bug" ),
    DISTINCTCOUNT( Table1[Project Name] )
)

Please mark the question solved when we get to the solution and consider kudoing if posts are helpful.

Cheers  Datanaut

 

View solution in original post

1 REPLY 1
AlB
Community Champion
Community Champion

Hi @Anonymous 

1. You need a 1-to-many relationship between the Quarter table (shown right) and the data table (shown left) thru Project name

2. Place QuarterTable[Quarter] in the rows of a matrix visual

3. Place this measure in the visual:

Measure =
DIVIDE (
    CALCULATE ( COUNTROWS ( Table1 ), Table1[issue type] = "Bug" ),
    DISTINCTCOUNT( Table1[Project Name] )
)

Please mark the question solved when we get to the solution and consider kudoing if posts are helpful.

Cheers  Datanaut

 

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.