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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher 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
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.