cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Sixian Frequent Visitor
Frequent Visitor

Create a Card showing the number of Rows in a Visualization (a Table)

I have a visualization in the form of a table. The values in the table change according to a slicer.

I want to add a Card that shows the number of rows in the table (excluding the header row). Of course, the value in the card will change according to the slicer.

Thanks

2 ACCEPTED SOLUTIONS

Accepted Solutions
Johanno Member
Member

Re: Create a Card showing the number of Rows in a Visualization (a Table)

You could:

1. Make a copy of the table

2. Change the copied table to a card

3. Change the Fields to Count

 

Could that work as a solution?

View solution in original post

Johanno Member
Member

Re: Create a Card showing the number of Rows in a Visualization (a Table)

Ok, you want to count by another column. You could delete the field and then choose another column, and set to count once again.

 

Or you could create a measure using

Count non empty rows = COUNT(Table[The column you want])

and put it in the card.

View solution in original post

5 REPLIES 5
D3nnisd Frequent Visitor
Frequent Visitor

Re: Create a Card showing the number of Rows in a Visualization (a Table)

I think making a measure with with =countrows would help.  

https://msdn.microsoft.com/en-us/query-bi/dax/countrows-function-dax?f=255&MSPPError=-2147217396

 

 

Johanno Member
Member

Re: Create a Card showing the number of Rows in a Visualization (a Table)

You could:

1. Make a copy of the table

2. Change the copied table to a card

3. Change the Fields to Count

 

Could that work as a solution?

View solution in original post

Sixian Frequent Visitor
Frequent Visitor

Re: Create a Card showing the number of Rows in a Visualization (a Table)

It works! Clever idea.

Just a clarification. When i choose the Card visualization, it chooses by default one of the values in the table. I change the summarization in a count and it is ok. In my case the value in the cecond column is chosen, but I would like to change it, because there could be some "void/missing" values in that column, so I could't get the total number of rows by counting tha values.

Johanno Member
Member

Re: Create a Card showing the number of Rows in a Visualization (a Table)

Ok, you want to count by another column. You could delete the field and then choose another column, and set to count once again.

 

Or you could create a measure using

Count non empty rows = COUNT(Table[The column you want])

and put it in the card.

View solution in original post

Sixian Frequent Visitor
Frequent Visitor

Re: Create a Card showing the number of Rows in a Visualization (a Table)

Great! It works very well!

Thank you!

Helpful resources

Announcements
Coming Soon: T-Shirt Design Contest

Coming Soon: T-Shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors