Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
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.