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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Triple records after merge and filter

Hi,

I have a strange phenomenon in power query (power bi).

Scenario:

1. get data from SQL server = 3 tables with data, where the tables has exact the same field names

2. append the 3 tables togheter in a new query

3. get data from an excel file in a new query

4. merge the excel data with the query from step 2, with 2 fields linked to each other 

5. expand the columns of the merged fields

 

Perfect! I have the data like I need it.

But then something strange happens. When I filter the resulting query of step 5, then every record is tripled, where the values in the field coming from the query from step 2 are the same or empty.

I have no clue what causes this.

 

Schematic:

WannesT_1-1662731593626.png

 

After filtering on field A, I get this result, so 3 same records with different values in field Y.

 

WannesT_2-1662731630915.png

Any suggestions are welcome.

Wannes

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I have found a solution. Surprisingly it is because there are records in field X with a period in it. For example: Tank4.Inflow. After removing the points, the problem is solved.

I don't know why power query reacts that way on fields with a period in it...

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

I have found a solution. Surprisingly it is because there are records in field X with a period in it. For example: Tank4.Inflow. After removing the points, the problem is solved.

I don't know why power query reacts that way on fields with a period in it...

Vera_33
Resident Rockstar
Resident Rockstar

Hi @Anonymous 

 

When you append 3 tables in step 2, for the same X= Tank1, do you have 3 rows with different Y values? If yes, then it is expected, you merge in step 4, the little table has 3 rows

Anonymous
Not applicable

Txs Vera.

No, all the tanks have only one value. There is one record in the merge for each tank. The values I get in field 'Y' are right, but are double or empty or null. In my example: Tank1 = 500 and Tank2 = 10 are the correct values.

Hi @Anonymous 

 

You mean after you append 3 tables, each Tank only has one value in Y, but after you merge it auto generates some empty / null values? It's interesting...can you check both tables before merge, the table has X+Y, all distinct combo, the table has X+A+B+C, all distinct combo?

Anonymous
Not applicable

Yes, al records has distinct combo. And what is weird: only after applying a filter on column A, there are triple records, not before. I cannot understand how those extra records are generated by filtering, unless a bug in power query (dangerous statement, I know).

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.