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 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.
User | Count |
---|---|
77 | |
74 | |
42 | |
32 | |
28 |
User | Count |
---|---|
100 | |
93 | |
51 | |
50 | |
48 |