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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
barragan82
New Member

Count Rows of a Visual Table

Hi all,

 

In the example below, I am trying to create a measure that counts the number of rows of this specific visual table, not of the rows of data in the table "behind the scenes." Specifically, I am trying to identify/count that we have a total of eight (8) for the EMAIL ADDRESS column. DISTINCTCOUNT gives me a result of 2 while COUNTROWS gives me a result of 11. I would appreciate any ideas. Thank you!

 

barragan82_2-1752097169770.png

 

 

2 ACCEPTED SOLUTIONS
AlexisOlson
Super User
Super User

It looks like the number of rows is determined by unique combinations of EMAIL ADDRESS, ARTIFACT SUBMISSION, and COURSE.

 

Assuming these are all columns of a single table named Table1, I'd expect something like this to work:

COUNTROWS (
    SUMMARIZECOLUMNS (
        Table1[EMAIL ADDRESS],
        Table1[ARTIFACT SUBMISSION],
        Table1[COURSE]
    )
)

 

View solution in original post

v-saisrao-msft
Community Support
Community Support

Hi @barragan82,

Thank you for reaching out to the Microsoft fabric community forum. Thank you @AlexisOlson  for your input on this issue. 
 
After reviewing the details you provided, I was able to reproduce the scenario, I have used it as sample data on my end and implemented it.   

Dax Measure:   

Row Visual Count = 
IF(
    ISINSCOPE('Instructors'[EMAIL ADDRESS]) && ISINSCOPE('Instructors'[COURSE]),
    1,
    COUNTROWS(
        SUMMARIZE(
            'Instructors',
            'Instructors'[EMAIL ADDRESS],
            'Instructors'[COURSE]
        )
    )
)


If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly. 
 
Thank you. 

View solution in original post

4 REPLIES 4
v-saisrao-msft
Community Support
Community Support

Hi @barragan82,

Thank you for reaching out to the Microsoft fabric community forum. Thank you @AlexisOlson  for your input on this issue. 
 
After reviewing the details you provided, I was able to reproduce the scenario, I have used it as sample data on my end and implemented it.   

Dax Measure:   

Row Visual Count = 
IF(
    ISINSCOPE('Instructors'[EMAIL ADDRESS]) && ISINSCOPE('Instructors'[COURSE]),
    1,
    COUNTROWS(
        SUMMARIZE(
            'Instructors',
            'Instructors'[EMAIL ADDRESS],
            'Instructors'[COURSE]
        )
    )
)


If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly. 
 
Thank you. 

Thank you, this did exactly what I wanted it to. 

AlexisOlson
Super User
Super User

It looks like the number of rows is determined by unique combinations of EMAIL ADDRESS, ARTIFACT SUBMISSION, and COURSE.

 

Assuming these are all columns of a single table named Table1, I'd expect something like this to work:

COUNTROWS (
    SUMMARIZECOLUMNS (
        Table1[EMAIL ADDRESS],
        Table1[ARTIFACT SUBMISSION],
        Table1[COURSE]
    )
)

 

That did exactly what I needed. Thank you. 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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