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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
PowerUser123
Helper II
Helper II

Unique Rows in Query Editor No Longer Unique When Loaded

I'm usin Text.PadEnd to add a number of spaces after text to make rows unique. For example, I have the word dog in 3 rows. I'm using Text.PadEnd to add 1, 2, 3 spaces to the end of the word dog. In Query Editor it says these rows are unique and I can confirm by hitting remove/keep duplicates and my rows are not affected.

 

When I load this data into my model, these rows are no longer unique. It returns as just "dog" with no spaces after.

 

Is there something I'm not considering or doing wrong?

2 REPLIES 2
amitchandak
Super User
Super User

@PowerUser123 ,

Text.PadEnd([Column], 3, " ")

 

Will make sure it is only three letters. So I doubt it will add any space

 

Power Query- Text.PadStart and Text.PadEnd: https://youtu.be/SNAB6XZ8q74

 

for uniqueness you should consider - Power Query- Index Column: https://youtu.be/NS4esnCDqVw

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak I have a column that has values 1,2,3. I'm adding those values to the original length of the word.

 

My Text.PadEnd is working in Query Editor. I can validate because remove duplicates doesn't do anything signifying my rows are unique. When I load the data into the model they are no longer unique.

 

An Index column wouldn't really work. I want the rows to appear the same, but I know they're not due to the padded spaces. If I add a period "." instead it recognizes as unique. When I do the same with a space, the data in the data model is longer recognized as unique.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.