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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
m_fenn
New Member

COUNTA Function based on a range of columns per row

There are five columns in my table that represent the Sprints that an Issue Type (Story, Bug, Defect, etc.) appeared in. I am looking for a count to help me understand average number of Sprints an Issue goes through.

 

In Excel, the equation for my problem is: =COUNTA(IX2:JB2)

 

Example:

 

Sprint

Sprint

Sprint

Sprint

Sprint

# of Sprints

Sprint 84

Sprint 85

Sprint 86

 

 

3

Sprint 77

 

 

 

 

1

 

However, when I try to replicate a similar equation in Power BI, I receive either (1) a syntax error or (2) a summation of all the counts per column, not per column per row.

 

Can you help me figure out how to solve this issue?

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@m_fenn,

 

You just need to select Unpivot Columns in Query Editor first.

https://community.powerbi.com/t5/Desktop/matrix-to-table-help/td-p/329415

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@m_fenn,

 

You just need to select Unpivot Columns in Query Editor first.

https://community.powerbi.com/t5/Desktop/matrix-to-table-help/td-p/329415

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
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.