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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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])))

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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])))

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

@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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.