Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hey Guys,
I need to display count of rows in a card for selected values in a table visual. In the below given example, If I select B value in the table visual it should display 1 in card and if I select B&C in table using control if should display 2 in card visual. If I dont select any value then it should show total count of rows in the table i.,e 4
Please help with some Dax ideas
Example: (Consider this as a table visual)
| Cust Name |
| A |
| B |
| C |
| D |
Output in Card: (Consider this as a Card visual)
| Count of Selected Values |
| 2 |
Hi,
Please check the below picture and the attache pbix file.
Customer count: =
COUNTROWS( Data )
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 13 | |
| 8 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 29 | |
| 19 | |
| 18 | |
| 11 | |
| 10 |