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

How to display total number on the card visual for records displaying in table visual

Hello all,

 

I am new to Power bi, need your help to calculate the number of rows coming up in table visual.

 

I have 2 datasets with many to many relationship. Table visual contains columns from both datasets. Now I am not able to show the total number of records on the card visual.  Can you please help me out, also the total number should get changed as per the slicer.

 

I have created power bi report with sample data, pls find attached file in below link

Sample pbix 

 

Thanks in advance.

2 REPLIES 2
amitchandak
Super User
Super User

@nitish_sharma , You need to query like

 

countrows(Summarize(Fact, Dim[Col1], dim[Col2], "_1", [Measure], "_2", [Measure]))

@amitchandak, Thanks for reply.

 

I have tried this but it dosen't works. I have tried with SUMMARIZECOLUMNS also, but that too didn't worked.

 

Thanks.

Helpful resources

Announcements
Join Arun Ulag at MPPC23

Join Arun Ulag at MPPC23

Get a sneak peek into this year's Power Platform Conference Keynote.

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Top Solution Authors