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
Pikachu-Power
Post Prodigy
Post Prodigy

DAX for checking the combinations

Hello all,

 

i have following situation:

 

png1.PNG

 

I could solve this in SQL with cross apply and for XML path command but looking for a way to do this now in DAX. I think "Distinct Client" and "Count PK" would be easy to implement with SUMMARIZE but how can i get a compilation of the contracts? In some cases i have over 250 same contracts and i need it just once in the column "Existing Contract".

 

Best Regards

Pikachu-Power

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Pikachu-Power , Create a measure

 

concatenatex(distinct(Table[Contract]), [Contract],"+" )

View solution in original post

2 REPLIES 2
Pikachu-Power
Post Prodigy
Post Prodigy

Great! Much easier than in SQL. Wouldnt have expected. Thanks!

amitchandak
Super User
Super User

@Pikachu-Power , Create a measure

 

concatenatex(distinct(Table[Contract]), [Contract],"+" )

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.