Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi!
I have a table like this:
Web Page | Article |
Article about cats | |
Article about dogs | |
Article about birds | |
Article 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 page | Article | Custom |
Article about cats | Facebook & Instagram | |
Article about dogs | ||
Article about birds | ||
Article 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!
Solved! Go to Solution.
Hi @mattih ,
Here are the steps you can follow:
In Power Query:
1. Group By – [Article] – Operation – All Rows
2. Add Column -- Custom Column -- Enter code:
[Count][Web Page]
3. [Custom] – Extract Values
3. Remove [Article]
4. Select [Count] -- Expand
5. Result:
Use Dax:
1. Create calculated column.
Custom =
CONCATENATEX(
FILTER(ALL('Table'),
'Table'[Article]=EARLIER('Table'[Article])),[Web Page],"&")
2. Result:
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
Hi @mattih ,
Here are the steps you can follow:
In Power Query:
1. Group By – [Article] – Operation – All Rows
2. Add Column -- Custom Column -- Enter code:
[Count][Web Page]
3. [Custom] – Extract Values
3. Remove [Article]
4. Select [Count] -- Expand
5. Result:
Use Dax:
1. Create calculated column.
Custom =
CONCATENATEX(
FILTER(ALL('Table'),
'Table'[Article]=EARLIER('Table'[Article])),[Web Page],"&")
2. Result:
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
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
25 | |
20 | |
18 | |
18 | |
17 |
User | Count |
---|---|
36 | |
25 | |
18 | |
18 | |
13 |