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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
PaulF0901
Regular Visitor

Perhaps a simple count for table rows

It's always a little daunting asking what is probably considered a simple question but here goes. 

 

I have a table of users of a product. The table is similar to this:

 

Date/Time   User name   Event           ObjectType 

Feb 1           John             CREATED     DOCUMENT

Feb 1           John             CREATED     DOCUMENT

Feb 2           Elaine           DELETED      DOCUMENT

Feb 3           John             CREATED      FOLDER

Feb 4           John             DELETED      DOCUMENT

 

I have a slicer (Activities) to which I have added the EVENT and OBJECTTYPE rows. I have another slicer with the USERNAMES. 

When I select a username, the Activities slicer shows the following, tailored to whichever username I select:

CREATED

      DOCUMENT

      FOLDER

DELETED

      DOCUMENT

 

How can I get it to add a count to the end? For example, if I select John, I would get:

 

CREATED

      DOCUMENT (2)

      FOLDER (1)

DELETED

      DOCUMENT (1)

 

I imagined I could just count up the number of rows that go to make up that output but I have no idea how. Again, apologies if this is incredibly obvious. 

 

 

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @PaulF0901 
If I understood you correctly the measure is :

Objects # = COUNTROWS()
Ritaf1983_0-1707880494998.png

The needed visual is a matrix:

Ritaf1983_1-1707880552660.png

pbix is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

3 REPLIES 3
PaulF0901
Regular Visitor

A million thankyou's for this, and for indulging a beginner. Your help is very much appreciated. 

Happy to help😊

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Ritaf1983
Super User
Super User

Hi @PaulF0901 
If I understood you correctly the measure is :

Objects # = COUNTROWS()
Ritaf1983_0-1707880494998.png

The needed visual is a matrix:

Ritaf1983_1-1707880552660.png

pbix is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors