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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
mattih
Frequent Visitor

Custom column that shows rows with the same value in one column

Hi!

I have a table like this:

Web PageArticle
FacebookArticle about cats
InstagramArticle about dogs
GoogleArticle about birds
InstagramArticle about cats

 

I would need to create a custom column that would search if the article name is exactly the same between two or more rows it would produce a custom values that tell the web pages that have the same article:

 

Web pageArticleCustom
FacebookArticle about catsFacebook & Instagram
InstagramArticle about dogsInstagram
GoogleArticle about birdsGoogle
InstagramArticle about cats

Facebook & Instagram

 

There are millions of articles in my dataset so I cant use the name of the article in the calculation. Any ideas on solving this? Thank you!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @mattih ,

 

Here are the steps you can follow:

In Power Query:

1. Group By – [Article] – Operation – All Rows

vyangliumsft_0-1719279644667.png

2. Add Column -- Custom Column -- Enter code:

[Count][Web Page]

vyangliumsft_1-1719279644670.png

3. [Custom] – Extract Values

vyangliumsft_2-1719279678266.png

vyangliumsft_3-1719279678267.png

3. Remove [Article]

vyangliumsft_4-1719279695027.png

4. Select [Count] -- Expand

vyangliumsft_5-1719279695028.png

5. Result:

vyangliumsft_10-1719279743471.png

Use Dax:

1. Create calculated column.

 

Custom =
CONCATENATEX(
    FILTER(ALL('Table'),
    'Table'[Article]=EARLIER('Table'[Article])),[Web Page],"&")

 

2. Result:

vyangliumsft_0-1719278490001.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi  @mattih ,

 

Here are the steps you can follow:

In Power Query:

1. Group By – [Article] – Operation – All Rows

vyangliumsft_0-1719279644667.png

2. Add Column -- Custom Column -- Enter code:

[Count][Web Page]

vyangliumsft_1-1719279644670.png

3. [Custom] – Extract Values

vyangliumsft_2-1719279678266.png

vyangliumsft_3-1719279678267.png

3. Remove [Article]

vyangliumsft_4-1719279695027.png

4. Select [Count] -- Expand

vyangliumsft_5-1719279695028.png

5. Result:

vyangliumsft_10-1719279743471.png

Use Dax:

1. Create calculated column.

 

Custom =
CONCATENATEX(
    FILTER(ALL('Table'),
    'Table'[Article]=EARLIER('Table'[Article])),[Web Page],"&")

 

2. Result:

vyangliumsft_0-1719278490001.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.