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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
corbusier
Advocate IV
Advocate IV

Show Count in Totals row without summarizing column

Hello all, I have a Matrix visual that I'm using to list attributes (measures) related to Products. For example, Sales, Revenue etc. The sum of Sales and Revenues works and shows fine in the Totals row. Now I want to add the count of Products. How do I do this, without adding a column with 1 for each row of Product?

 

for example,

 

Product | Code | Sales | Revenue  

Prod A  | BRE |  700 | 700000

Prod B  | GHR | 500 | 600000  

Totals   | 2 | 1300 | 1300000

 

Any help is appreciated! 

1 ACCEPTED SOLUTION

@corbusier

 

No. I'm afraid it is not possible. Matrix can not count the Total for srouce table itself. We should give Matrix a value.

 

Thanks,
Xi Jin.

 

 

View solution in original post

3 REPLIES 3
v-xjiin-msft
Solution Sage
Solution Sage

@corbusier

 

Did you mean this?

 

sa.PNG

 

If you want to get the count of Products. You can simply put the Product column into Values of Matrix visual and choose Count. And if you want to use measure to calculate the total count of products, you can try COUNTROWS(tablename).

 

If above sample doesn't satisfy your requirement, could you please share us more detailed information like some screenshots of your Matrix and your desired result if possible?

 

Thanks,
Xi Jin.

This works, but inserts a column. I'm trying to not have a column that just has "1" on every row to get the total count since it's ugly. Is it possible to have the count on the Total row without having a column for it? 

@corbusier

 

No. I'm afraid it is not possible. Matrix can not count the Total for srouce table itself. We should give Matrix a value.

 

Thanks,
Xi Jin.

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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