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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
qwertzuiop
Advocate III
Advocate III

detect dublicates and attach a string to the second value

Dear Power BI-Community

 

Following problem to solve:

 

Let's assume this table with more than 1'000 records.

As you can see in column A (business unit), there are dublicates that should not be treated as dublicates.

The goal (font in red) is to change in transformation the second occuring value with a string e.g. "-*"

 

Business UnitDatumValue
A01.01.2021225
 01.02.2021241
 01.03.2021325
 01.04.2021258
A-*01.01.202112
 01.02.202113
 01.03.202114
 01.04.202115
B01.01.2021547
 01.02.2021564
 01.03.2021324
 01.04.2021478
B-*01.01.202122
 01.02.202120
 01.03.202118
 01.04.202114

 

Any ideas?

 

Thank you very much for your contribution.

 

Cheers

qwertzuiop

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @qwertzuiop,

You can enter to query edit and 'fill down' on your category fields and add an index column to your table.

Fill values in a column - Power Query | Microsoft Docs

Add an index column - Power Query | Microsoft Docs
After these steps, you can back to the 'data view' side add calculate column with Dax expressions to check the current 'business unit', index field values to remark the raw or duplicate rows.

Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @qwertzuiop,

You can enter to query edit and 'fill down' on your category fields and add an index column to your table.

Fill values in a column - Power Query | Microsoft Docs

Add an index column - Power Query | Microsoft Docs
After these steps, you can back to the 'data view' side add calculate column with Dax expressions to check the current 'business unit', index field values to remark the raw or duplicate rows.

Regards,

Xiaoxin Sheng

TomMartens
Super User
Super User

Hey @qwertzuiop ,

 

I'm wondering about the following

  • how duplicates are identified
    • my assumption: the combination of business unit and Datum repeat
  • how to order the duplicates, from the expected result it is not clear why the 2nd A and the 2nd B are tagged and not the first one.
    You have to be aware that neither Power Query or the vertipaq engine know the concept of a sequence or an implicit row order.

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors