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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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