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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
PH9Z
Regular Visitor

Only show data on visual if underlaying data contains more than 10 rows

I want to show only data if the table (after filtering) has more then 10 rows.

 

I treid

Check10 = COUNTROWS('TABLE')
 this indeed gives me a rowcount but a 'all pages filter ' >= 10 filters out all data.
 
Any suggestions?
1 ACCEPTED SOLUTION
Mariusz
Community Champion
Community Champion

Hi @PH9Z 

 

Sorry use ALLSELECTED instead of all, and add this Measure to "Filters on this visual" in the filters Pane

Measure = 
COUNTROWS( ALLSELECTED( 'Table' ) )

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

View solution in original post

5 REPLIES 5
Mariusz
Community Champion
Community Champion

Hi @PH9Z 

 

Try this,

Measure = 
COUNTROWS( ALL( 'Table' ) )

image.png

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn


 

Hi Mariusz,

 

This gives the totaal rowcount before filtering, I need to filter on the total number of rows after filtering:

Total = 5Total = 5 the total number of rows here is 5, so I don't want to show the visiual. If the total is equal or greater the 10 I want to show it.
image.png
Mariusz
Community Champion
Community Champion

Hi @PH9Z 

 

Sorry use ALLSELECTED instead of all, and add this Measure to "Filters on this visual" in the filters Pane

Measure = 
COUNTROWS( ALLSELECTED( 'Table' ) )

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

Anonymous
Not applicable

and if you use VALUES? 

Measure = COUNTROWS(VALUES('Table'))

Hi Jef,

 

I'm not able to drag this measure on the filter pane and edit it... I can't enter any value:

image.png

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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