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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
khtt2003
New Member

Help comparing data within a table with duplicates in multiple columns

I know the title sounds like a lot but I'm sure there's a way to do this, I just can't figure it out.  Here's what I'm working with:

 

I have a table with 14 columns and I need to look at the data in 5 of them.  There are duplicates in all columns by design (I've created a concatenated column to manage that portion).  Here's what I need to do using the example below:

1.  Look at all of the rows with the same File Number

2. From those rows, look at rows with the same L-Name

3. From those rows, look at rows with the same R-Name

4. From those rows, look at rows with the same R-Type

5. From the remaining selection, return whether or not a row has an L-Type of "All"

 

The idea is to do this for each file number in a report with thousands.  Any help is greatly appreciated!

 

File NumberL-NameL-TypeR-NameR-Type
33LeftOneIn3rd
33LeftAllIn3rd
19LeftOneInCD
19LeftAllInCD
19LeftOneDCCD
3LeftOneInCD
4RightOneIn3p
4RightAllIn3p
4RightAllDC3p
4RightOneIA3p
4LeftAllIA3p
2 REPLIES 2
Anonymous
Not applicable

Hi @khtt2003 ,

 

I'm not quite sure if I understand your needs accurately.
Sample data without sensitive information and expected output would help tremendously.
Please see this post regarding:  How to Get Your Question Answered Quickly 

 

Hope it helps,


Community Support Team _ Caitlyn

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

 

Sorry I wasn't more clear, what I need to do is complicated and difficult to articulate.  Please see the below example (my security is such that I cannot upload a file).

 

What I'm looking to determine is that for every FileNumber-Color-Tree-Element combination, there is a row where Type=All (return Yes/No)

 

For 42360-White-Cedar-Caesium there are two entries and one has Type=All, so that would be a Yes for all matching rows.

For 29090-Brown-Chestnut-Gadolinium there are two entries and neither has Type=All, so that would be a No for all matching rows.

 

On my file, I started by concatenating FileNumber-Color-Tree-Element data, but I can't figure out the next step.

 

I hope that makes more sense.  Thank you for your help!

 

File NumberColorTreeElementTypeExpected Outcome
42360WhiteCedarCaesiumOneYes
42360WhiteCedarCaesiumAllYes
42360BlackCedarCaesiumOneYes
42360BlackCedarCaesiumAllYes
42360PurpleCedarCaesiumOneYes
42360PurpleCedarCaesiumAllYes
42360GreenCedarCaesiumOneYes
42360GreenCedarCaesiumAllYes
42360OrangeCedarCaesiumOneNo
43110GreenChestnutRadonOneYes
43110GreenChestnutRadonAllYes
42350BlackAshGadoliniumOneNo
34570GreenChestnutEinsteiniumOneYes
34570GreenChestnutEinsteiniumAllYes
29090BrownChestnutGadoliniumOneNo
29090BrownChestnutGadoliniumOneNo

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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