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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
sheap069
Helper III
Helper III

Get Count of Rows for Table Visual

Hello,

 

I have a table of Group IDs that has columns from various tables. There are slicers on the page that affect this table visual, as well as measures that further filter the table. 

 

I want to get the count of rows for this table, but I am unsure of how to do this. If I use a basic count, I only get the count of IDs based on the slicers that are on the page. I want to also have the count include the measures that are filtering the page. I get the correct number of rows in my table and the correct IDs based on the slicer selections on this page and the slicers for the measures on another page, but I can't get the correct count.

 

Thank you. 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @sheap069 ,

 

I'm not sure if I understand you correctly. Are you want to count a value based on the slicer on current page along with measures on an other page?

If so you could try to create a measure like below.

Measure 2 = CALCULATE(COUNT('Table'[id]),FILTER('Table',SELECTEDVALUE('Table'[year])='Table'[year]&&[Measure]=1))

Here's my sample data and result.

Measure = IF(SELECTEDVALUE('Table'[value])>30,1,0)

3.PNG

4.PNG

5.PNG

 

Best Regards,

Jay

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @sheap069 ,

 

I'm not sure if I understand you correctly. Are you want to count a value based on the slicer on current page along with measures on an other page?

If so you could try to create a measure like below.

Measure 2 = CALCULATE(COUNT('Table'[id]),FILTER('Table',SELECTEDVALUE('Table'[year])='Table'[year]&&[Measure]=1))

Here's my sample data and result.

Measure = IF(SELECTEDVALUE('Table'[value])>30,1,0)

3.PNG

4.PNG

5.PNG

 

Best Regards,

Jay

 

vanessafvg
Super User
Super User

what is the definition of what you are trying to count exactly.  What is contained in the table that you want?  Can you provide some examples of where the count is not working for you.  Visuals are useful, data even better.





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors