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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.