Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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!
Solved! Go to Solution.
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]
)
)
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.
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.
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.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
22 | |
10 | |
10 | |
9 | |
7 |