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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

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
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors