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
jwi1
Post Patron
Post Patron

concatenate data

Good day,
I am looking for a solution for the following.

Below is a simple table with container_nr, counter and rep_code.

Container_nr HLXU8713416 has 2 rep_codes, HLXU8737594 only 1.

The outcome of the formula I am looking for is displayed in de column OUTCOME.

So, as HLXU8713416 has 2 rep_codes, the outome starts with "2", after that the rep_code of that particular line in the dataset is mentioned.

HLXU8737594 has only 1 rep_code, so it starts with '1', and after that de rep_code.

Thanks for your advise!

John

 

container_nrcounterrep_codeoutcome
HLXU87134161E49 1 RN 262 E49 1 RN 26
HLXU87134161E51 50 RN 262 E51 50 RN 26
HLXU87375941E49 1 RN 261 E49 1 RN 26
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@jwi1 , Try a new column like

countx(filter(Table, [container_nr] = earlier([container_nr])),[container_nr]) & " " & [rep_code]

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@jwi1 , Try a new column like

countx(filter(Table, [container_nr] = earlier([container_nr])),[container_nr]) & " " & [rep_code]

Brilliant!

Thanks a lot.

John

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.