Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi everyone, I have a table visual and slicers in my report.
I want to include a card visual which will show total number of rows in the table visual
Solved! Go to Solution.
Hi @anmolmalviya05 ,
You can write below measure to countrows dynamically on the table visual :
Here, if you change the slicer then the measure will show you related number of rows.
Let me know if this helps or share more details of your query.
Thanks,
Ankita
If it is a table visual, you will need to write a measure that mimics what happens in a table visual. For example
RowCount =
VAR _tbl =
SUMMARIZECOLUMNS (
'Dates'[Month and Year],
'Dates'[YYYYMM],
'Category'[Category],
'Geo'[Geo],
"Total_Revenue", [Total Revenue]
)
RETURN
COUNTROWS ( _tbl )
If it is a table visual, you will need to write a measure that mimics what happens in a table visual. For example
RowCount =
VAR _tbl =
SUMMARIZECOLUMNS (
'Dates'[Month and Year],
'Dates'[YYYYMM],
'Category'[Category],
'Geo'[Geo],
"Total_Revenue", [Total Revenue]
)
RETURN
COUNTROWS ( _tbl )
Hi @anmolmalviya05 ,
You can write below measure to countrows dynamically on the table visual :
Here, if you change the slicer then the measure will show you related number of rows.
Let me know if this helps or share more details of your query.
Thanks,
Ankita
1. Create a new measure in your Power BI model: 'Total Rows = COUNTROWS(YourTableName)'.
2. Add a new card visual to your report.
3. Add the 'Total Rows' measure to the card visual.
4. The card will now display the total number of rows in your table, dynamically updating based on slicers.
To show the total rows in a card visual in Power BI:
This will dynamically display the total number of rows in your table visual.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.