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
DtMatt
New Member

Count across multiple columns

Hi everyone,

Can someone help with this one please?

 

If I have various columns of data in Excel and in Power-Bi I need a measure (or new column) that counts all the 'Outstanding' rows across the 9 different columns and shows the total.

For example: Outstanding = 22

 

How can I do this?

 

Thanks 🙂 

 

DtMatt_0-1700308821371.png

 

2 ACCEPTED SOLUTIONS

10 REPLIES 10
Ahmedx
Super User
Super User

to know how to do this watch my video

40.mp4

Thanks @Ahmedx 

I have other columns in the data that are feeding other visuals, so when I unpivot the columns, all other visual break.

Any ideas?

I can give a different solution without unpivot but it will be a not good practice

Screenshot_2.png

Yes, this one worked.

Thanks @Ahmedx 

select these columns together and unpivot the other columns and then you don’t need to add a column index

Screenshot_1.png

So because I'm using these columns in other visuals, when I unpivot, I get this:

 

DtMatt_0-1700316947982.png

 

try this

Screenshot_3.png

DtMatt
New Member

When I use this... it only shows the total as 4, when it should be 13

 

Measure =
  COUNTROWS(
    FILTER(
      'IT Progress Data',
      [202 Last Activitiy] = "Outstanding" && [203 Last Activitiy] = "Outstanding"
     )
  )

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.