cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
lpakhomova
New Member

rowcount counts values that were removed from table using date and time filter

I have a table that unfiltered has about 6mill records and I need a row counter that informs users how many rows they have. I have created a variable: 

 

countrows = COUNTROWS(FactEvent)

 

Screenshot 2021-01-14 151925.png It calculated correct value if I use only slicers on the page, but if I use filter and remove rows based on the dates, it doesn't adjust the value. As you can see on the image the value in totals of the first column (17) is not the same as the value in Row Count (335)

How can I count rows in my table and have value that takes to account both: the slicers and the filter?

 
 

 

1 ACCEPTED SOLUTION
gabrielreversi
Regular Visitor

Hello @lpakhomova 

Are you applying the filter mentioned only in the table?

Try applying it to the card too or in the fied "Filters on this page"

View solution in original post

2 REPLIES 2
amitchandak
Super User IV
Super User IV

@lpakhomova , All power bi visual gorup data , unless you add an index ot primary key column from you table as non summarized.

Rows are 335 summarized as 17

 

You make have take sount with all column in visual like

countrows(Summarize(Table, Table[Start Date]), Table[End Date], Table[Asset])) // add others



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

gabrielreversi
Regular Visitor

Hello @lpakhomova 

Are you applying the filter mentioned only in the table?

Try applying it to the card too or in the fied "Filters on this page"

View solution in original post

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Get Ready for Power BI Dev Camp

Power BI Dev Camp - June 24th

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors