Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.