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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
mayankkapoor85
Frequent Visitor

how to count the values in column

hi everyone,

I am newbie in Power BI. 

I have problem i am nor being able to solve. Pls see below table i generated

2017-07-10 (2).png

my problem is that the column on left has a single value and all want to do is calculate the count of distinct elements in the second column. on selecting the count feature it gives me the total figure, not the value that is present in the filtered table.

Any help is appreciated

2 REPLIES 2
adriansuteu
Advocate I
Advocate I

Hello.

 

Try using DISTINCTCOUNT instead of COUNT if you want the number of distinct values in a given column in case you are creating a Measure.

Countdistinct2.jpg

 

If you want to count distinct values in a table use Count (Distinct)

Countdistinct.jpg

 

P.S: Always make sure you have the latest Power BI version or you might miss some cool features!

hi 

that is a great tip. though a measure is created for the table. I want to create a measure for a dynamic table that I created using the tables that are there in the report view. how can I  do that

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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