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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
RubySmith
Frequent Visitor

How to show count of rows for a specific column in a visual / table

Hi, 

 

I am new to PowerBi so apologies for this probably very simple question but I have been struggling for hours how to make this work, hoping someone can assist. 

 

I have a Data Source table with User ID, Licenses and Environment (User ID may have many Licenses, which may apply to many Environments). I am trying to show in Power BI what would be insanely simple with a pivot table in excel but I cannot for the life of me figure out how.

 

I would like a table in Power Bi that has User ID on the left and Count of Licenses on the left. Examples below. 

 

Source Table

UserIDLicenseEnvironment
User-1Type AEnvironment 1
User-1Type AEnvironment 2
User-1Type CEnvironment 3
User-2Type BEnvironment 3
User-3Type AEnvironment 1

 

Objective Power Bi table

UserIDCount of License
User-13
User-21
User-31

 

Assistance greatly appreciated, thanks in advance!

 

1 ACCEPTED SOLUTION
Idrissshatila
Super User
Super User

Hello @RubySmith ,

 

try this:

 

count of license = Count('YourtableName' [license] )

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin
Vote for my Community Mobile App Idea 💡



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




View solution in original post

2 REPLIES 2
RubySmith
Frequent Visitor

Hi @Idrissshatila 

 

Thanks so much!! Appreciate your fast assistance, you have saved my day truly. Thanks again 

 

Idrissshatila
Super User
Super User

Hello @RubySmith ,

 

try this:

 

count of license = Count('YourtableName' [license] )

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin
Vote for my Community Mobile App Idea 💡



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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