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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
cjramsey22
Regular Visitor

Count all cells in a row that have a specified value

I'm using a sharepoint db that has about 70 columns and around 3000 rows long. I need to count the number of times each row has an entry with the word "Verified". 

 

I tried wtih Progress = COUNTAX('TABLE', "Verified")

 

I've been searching on here for an hour and no luck. Seems like this would have been very simple in excel.

 

SiteAccessDirectionsEquipmentDatabasesContractorsProgress
Site1VerifiedVerifiedIncompleteVerifiedN/A3
Site2VerifiedVerifiedVerifedN/AN/A3
Site3VerifiedVerifiedVerifiedVerifiedVerified5
1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

Hello @cjramsey22 

In the query editor you can unpivot the other columns so you have [Site] [Attribut] [Value] then you can do a count of the lines where the value = "Verified"

 

In the query editor select the site column

Go to Transform

Unpivot Columns > Unpivot Other Columns

2020-04-20_14-05-31.jpg

Verified Count = 
CALCULATE(
    COUNTROWS( 'Table' ),
    KEEPFILTERS('Table'[Value] = "Verified")
    )

2020-04-20_14-07-49.jpg

View solution in original post

1 REPLY 1
jdbuchanan71
Super User
Super User

Hello @cjramsey22 

In the query editor you can unpivot the other columns so you have [Site] [Attribut] [Value] then you can do a count of the lines where the value = "Verified"

 

In the query editor select the site column

Go to Transform

Unpivot Columns > Unpivot Other Columns

2020-04-20_14-05-31.jpg

Verified Count = 
CALCULATE(
    COUNTROWS( 'Table' ),
    KEEPFILTERS('Table'[Value] = "Verified")
    )

2020-04-20_14-07-49.jpg

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors