Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
90 | |
82 | |
65 | |
51 | |
31 |
User | Count |
---|---|
117 | |
116 | |
71 | |
64 | |
40 |