Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have three tables related to each others (two tables many-to-many) : lets take this as an example
A person has many resources
I wanted to count for example : for every resource the number of people who has this resource, with a special condition on person for example firstname starts with "j".
I try many functions like filter or others but theese function only filter into the same table.
how can i use join on couting ?
Solved! Go to Solution.
Hi khalilliraqui,
According to your description, you want to get the count of resource owner persons which first name start with “j”?
If as I said, you can follow below steps):
‘Person’:
’Personal Source’:
‘Resource Type’:
Recoure Count of Person Start with 'j' = DISTINCT( SELECTCOLUMNS('Personal Source',"Resource Type",RELATED('Resource Type'[Name]),"Count",COUNTX(FILTER('Personal Source','Personal Source'[Resource Type ID]=EARLIER('Personal Source'[Resource Type ID])&& LEFT(RELATED(Person[First Name]))="j"),'Personal Source'[Person ID])))
Reference:
Regards,
Xiaoxin Sheng
Hi khalilliraqui,
According to your description, you want to get the count of resource owner persons which first name start with “j”?
If as I said, you can follow below steps):
‘Person’:
’Personal Source’:
‘Resource Type’:
Recoure Count of Person Start with 'j' = DISTINCT( SELECTCOLUMNS('Personal Source',"Resource Type",RELATED('Resource Type'[Name]),"Count",COUNTX(FILTER('Personal Source','Personal Source'[Resource Type ID]=EARLIER('Personal Source'[Resource Type ID])&& LEFT(RELATED(Person[First Name]))="j"),'Personal Source'[Person ID])))
Reference:
Regards,
Xiaoxin Sheng
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
60 | |
58 | |
56 | |
38 | |
28 |
User | Count |
---|---|
82 | |
62 | |
45 | |
41 | |
40 |