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
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
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.