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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
DesaulnM
Frequent Visitor

Count the number of rows selected in a table visual

Hi,

I have a table visual that is used to filter two other visuals. I would like the two other visuals to show data only when a single row is selected from the main table. I tried using DISTINCTCOUNT but it returns the total number of rows and not only the ones selected. I also tried SELECTEDVALUE and ISFILTERED but it returns BLANK and FALSE whatever is selected in the table. 

I don't want to use a slicer because I need to let the users sort the table by the column of their choice to find the application for which they want to see the details which is not possible with a slicer. 

 

DesaulnM_2-1692371592885.png

Any idea how I can achieve this? Thanks.

 

1 ACCEPTED SOLUTION
some_bih
Super User
Super User

Hi @DesaulnM "it depends" what is your canvas interaction. Usually, it in table you have Application ID and select some of them, in other visual on same canvas this measure should be recalculated in manner to count number of rows in that table.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






View solution in original post

4 REPLIES 4
some_bih
Super User
Super User

Hi @DesaulnM "it depends" what is your canvas interaction. Usually, it in table you have Application ID and select some of them, in other visual on same canvas this measure should be recalculated in manner to count number of rows in that table.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






For those interested, I was able to do it with a calculated table. 

 

some_bih
Super User
Super User

Hi @DesaulnM to count rows simple use COUNTROWS

COUNTROWS([<table>])

[<table>] replace where your Application ID column is located. Put this measure into card visual.

Did I answer correctly? Kudos appreciate / accept solution.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Unfortunately, the count stays the same when I select a row in the table visual. I would like the count to be 1 when only 1 row is selected. I guess it's not possible to count the rows selected directly in the table visual.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors