Forum Discussion
Anonymous
4 years agoNot applicable
DAX
Need help with DAX Let say I have two tables Table 1- Company Now Each company can have multiple assets Let say Company Assets C1 A1 C1 A2 C1 A3 C2 A1 C2 A2 and so on...... Now I have ano...
- Anonymous4 years ago
Hi Anonymous ,
You could use this formula:
Measure = CALCULATE ( COUNT ( Resource[Resources] ), FILTER ( Resource, Resource[Assets] IN VALUES ( Company[Assets] ) ) )Best Regards,
Jay
Jos_Woolley
4 years agoSolution Sage
Hi,
When you say "Table 2- Resource and it is already joined using a primary key" what exactly do you mean? You mean it has a relationship with Table 1? Or with some other table?
Regards
- Anonymous4 years agoNot applicable
Yes correct, It already has a relationship mapped by Project ID to Table 1.
All I am looking for is a DAX that can help me aggregate the columns present in Table 2 for Company Column Table 1
- Ashish_Mathur4 years agoSuper User
Hi,
Share the download link of your PBI file with the relationship already created. Share dummy data if you wish to.
- Anonymous4 years agoNot applicable
Definitely not feasible for me to share pbix file. However I have already shared the data format above with dummy data. Essentially I just want the count of resources for each company.