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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Wresen
Post Patron
Post Patron

Combine values on each row

Hi and thanks for reading this.

I have a little problem and i have no clue how to do it , it seemed easy when i started to think about it 🙂

I have a tabel like below:
Tablestore.PNG

I would like to create a column like the picture below(Yellow column) where i combine All column "store" values on each row.
Tablestore1.PNG

Thanks so much.

1 ACCEPTED SOLUTION
halfglassdarkly
Responsive Resident
Responsive Resident

Try adding this as a calculated column:

 

 

Comb =
CALCULATE(CONCATENATEX('your table name',[Store],"/",1),ALL('your table name'),your table name'[What]=EARLIER('your table name'[What]) 

 

View solution in original post

6 REPLIES 6
Wresen
Post Patron
Post Patron

Hi again
@halfglassdarkly 

It worked as i asked for but found a thing that i did not want .

It is possible to do the the store value unique.

If i would have like below: 
store3.PNG

Comb on Red will A/A/B
I would like it to be only A/B

Try this and see if it works for you:

Comb =
CALCULATE(CONCATENATEX(DISTINCT('your table name'),[Store],"/",1),ALL('your table name'),your table name'[What]=EARLIER('your table name'[What]) 

 

Hi @halfglassdarkly 
Did not get yours to work , but with small modification as below it worked .
Thanks so much

Found the solution:

Comb = 
 CALCULATE(CONCATENATEX(DISTINCT('Table'[store]),'Table'[store],"/",1),ALL('Table'),'Table'[What]=EARLIER('Table'[What]) )
halfglassdarkly
Responsive Resident
Responsive Resident

Try adding this as a calculated column:

 

 

Comb =
CALCULATE(CONCATENATEX('your table name',[Store],"/",1),ALL('your table name'),your table name'[What]=EARLIER('your table name'[What]) 

 

Thanks so much @halfglassdarkly 

really appriciate it 🙂

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.