cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
LyonsBI_BRL
Helper III
Helper III

Count # of Twitter Followers, given there are duplicate rows

I'm attempting to calculate the number of Twitter followers per RegistrantID. Each Registrant ID has multiple Rows.

Problem is when I attempt to look at the number of Twitter Followers for each RegistrantID, I'm getting way more than the number of actual Twitter Followers. 

LyonsBI_BRL_1-1623282343136.png

I did try a Measure of

 CALCULATE(MaX('All Applicants'[value.FollowersonTwitter])

LyonsBI_BRL_2-1623282952781.png

Though that didn't seem to help any.

Any suggestions here?

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@LyonsBI_BRL , Try a new measure like

MaXX(values('All Applicants'[value.RegistrantID]), calculate(max( 'All Applicants'[value.FollowersonTwitter])))

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

Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@LyonsBI_BRL , Try a new measure like

MaXX(values('All Applicants'[value.RegistrantID]), calculate(max( 'All Applicants'[value.FollowersonTwitter])))

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

Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!

View solution in original post

@amitchandak that worked great!

 

Now if I wanted to count words instead of numbers how would I do that instead? I have another column that is called value.State. Which I need to count the number of distinct entries per state. Again I have multiple rows for the same Registrant ID showing up.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

November Power BI Update 768x460.png

Check it Out!

Click here to read more about the November 2021 Updates!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.