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
Anonymous
Not applicable

Calculate amount of users subscribed to more than 1 competition

I'm trying to figure out the distinct number of users that have entered a team in more than 1 competition. Users can have multiple teams per competition, the amount of teams is not relevant.

 

Every team entry is a line where paid = 1 indicates they have paid for a team.

So what I would like to calculate is: distinctcount of users who have paid for 1(or more) teams in 2 or more competitions.

This is a sample:

competition_feeduser_idpaid
Comp_2426471
Comp_2248700
Comp_289491
Comp_6167321
Comp_174111
Comp_7291300
Comp_2467530
Comp_264971
Comp_3298161


Any help would be greatly appreciated as I can't seem to figure this out.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Create a measure like this and try

 

countx(filter(summarize(filter(Table, Table[paid] =1), Table[USer_id], "_1", calculate(distinctCOUNT(Table[competition_feed]))),[_1] >1),[USer_id])

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , Create a measure like this and try

 

countx(filter(summarize(filter(Table, Table[paid] =1), Table[USer_id], "_1", calculate(distinctCOUNT(Table[competition_feed]))),[_1] >1),[USer_id])

Anonymous
Not applicable

Brilliant, thanks a lot !

 

If you were to create a matrix overview per competition of the amount of users with teams in multiple competitions, would this also be possible?

 

For instance: comp_1 has 100 users subscribed to multiple competitions, comp_2 88 users, ...

Anonymous
Not applicable

Brilliant, thanks a lot !

 

If you were to create a matrix overview per competition of the amount of users with teams in multiple competitions, would this also be possible?

 

For instance: comp_1 has 100 users subscribed to multiple competitions, comp_ 88, ...

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.