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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Top Kudoed Authors