cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

Get the number of identical values in one column

Hi there,

 

on of my table columns in Power BI containts several fields with an identical value. I want to divide by the number of fields with the identical value. Which expression do I use? Can anyone help me with that?

 

Thank you

Dorothee

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Get the number of identical values in one column

Hi, @Dorothee123 

if you  just want to get the count by source.name ,Please try the function "Group by"

 

43.png

44.png

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Highlighted
Super User VII
Super User VII

Re: Get the number of identical values in one column

@Dorothee123 it will be easier to understand your question if you post some sample data and expected output.

 

Read this post to get your answer quickly.

https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





Highlighted
Super User IX
Super User IX

Re: Get the number of identical values in one column

@Dorothee123 , Not clear to me

 

count(Table[col])/distinctcount(Table[col])



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Highlighted
Regular Visitor

Re: Get the number of identical values in one column

Well, I want to count the total number of values for each of these categories, i.e.

 

My output should be something like

 

17 values for AzureBillingUsageApril2020

22 values for AzureBillingMai2020 etc

 

Dorothee123_0-1594390516408.png

 

Highlighted
Super User VII
Super User VII

Re: Get the number of identical values in one column

@Dorothee123 add a measure like this

 

Record Count = COUNTROWS ( Table )

 

In table visual, drag source name and above measure, and you will get the count by source.

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop shop for Power BI related projects/training/consultancy.






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





Highlighted
Community Support
Community Support

Re: Get the number of identical values in one column

Hi, @Dorothee123 

if you  just want to get the count by source.name ,Please try the function "Group by"

 

43.png

44.png

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements

August Community Highlights

Check out a full recap of the month!

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power BI

Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.

Top Kudoed Authors