Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon'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.
Hi,
I am new to powerbi and using CRM dynamics as datasource.
I have 4 tables, 1) activitypointers, 2) activityparties 3)incident 4) contacts
My current table visual is like this
Ticket Number(incident) | Activityid (activitypointer) | partyid(activityparty) | contact |
1 | a | x | xname |
1 | a | y | yname |
1 | a | z | zname |
2 | b | b | bname |
3 | a1 | x1 | x1nam |
3 | a2 | x2 | x2name |
All I am expecting it to be is
ticketnmber | contact |
1 | xname, yname, zname |
2 | bname |
3 | x1name, x2name |
any help is highly appreciated.
Thanks,
Ashay
Solved! Go to Solution.
Hi @Anonymous
TomMartens's suggestion is helpful when the columns his formula used are all in the same table.
But, in your scenario, all these four columns are in four different tables.
It seems"incident" table and "contacts" table are not related directly, (from the Relationship view, there is no direct relationship between two tables),
If your relationship is like
You could create a column in "contacts" table,
related_ticketnmber = RELATED(incident[Ticket Number])
Then create a measure or use TomMartens's measure
Measure = CONCATENATEX(FILTER(ALL(contacts),contacts[related_ticketnmber]=MAX(contacts[related_ticketnmber])),[contact],",")
If your relationship is not like that so that you can't create a column as above.
Please let me know what exactly relationships there are.
Best regards
Maggie
Hi @Anonymous
TomMartens's suggestion is helpful when the columns his formula used are all in the same table.
But, in your scenario, all these four columns are in four different tables.
It seems"incident" table and "contacts" table are not related directly, (from the Relationship view, there is no direct relationship between two tables),
If your relationship is like
You could create a column in "contacts" table,
related_ticketnmber = RELATED(incident[Ticket Number])
Then create a measure or use TomMartens's measure
Measure = CONCATENATEX(FILTER(ALL(contacts),contacts[related_ticketnmber]=MAX(contacts[related_ticketnmber])),[contact],",")
If your relationship is not like that so that you can't create a column as above.
Please let me know what exactly relationships there are.
Best regards
Maggie
Hi Maggie,
Sorry for late reply.
Actually, I have fixed this by myself.
Step 1) I created custom column = Related(contacts(fullname)) .
step 2 ) Created measure =
Hey,
this measure:
concatenax contact = IF(HASONEVALUE('Table1'[Ticket Number(incident)]) ,var tickets= VALUES('Table1'[Ticket Number(incident)]) return CONCATENATEX( FILTER( ALL(Table1) ,'Table1'[Ticket Number(incident)] in tickets ) ,'Table1'[contact] ,", " ) ,BLANK() )
allows this:
Hopefully, this is what you are looking for.
Regards,
Tom
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
102 | |
75 | |
44 | |
39 | |
31 |
User | Count |
---|---|
161 | |
87 | |
64 | |
46 | |
42 |