Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
prajwal1
Frequent Visitor

Need to Display count of rows in a card for selected values from table visual

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
1 REPLY 1
Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attache pbix file.

 

Jihwan_Kim_0-1686905014645.png

 

Customer count: = 
COUNTROWS( Data )

 


 

    Microsoft MVP




If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.





LinkedIn
Visit my LinkedIn page





Outlook Booking
Schedule a short Teams meeting to discuss your question.




Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.