March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
Register NowGet certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
Hi all,
I was trying to implement an incremental load for the usage metrics report.
I have the excel table imported which gets refreshed bi-weekly (manually) and I have another table created to hold historical data since PBI generated usage metrics dump file holds only 90 days of data.
I wanted to keep all previous data into the second table and update only new data from the first table.
Since the first table already have the previous 75 days of information (90days - 15 for bi weekly dump), simple append will end up creating duplicate rows.
Is there any way to append with condition where only the rows will be appended from the first table where the date is after (lets say) 05/15/2018?
Can I put the condition in advance editor (given below) for the second table?
let Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i44FAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [Column1 = _t]), #"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type text}}), #"Appended Query" = Table.Combine({#"Changed Type", Airbus}), #"Removed Columns" = Table.RemoveColumns(#"Appended Query",{"Column1"}) in #"Removed Columns"
I have another cheap idea where the tables will get appended and remove duplicates based on the dates, however, I am little skeptical about that.
Thanks,
K3
Solved! Go to Solution.
Hi @k3rz0rg,
Your idea could be the best way. I guess you don't have duplicates in a single file. So,
1. Append the tables as a new table or what you need.
2. Select the columns that you think they can be the criterion.
3. Click remove duplicates.
Best Regards,
Dale
Hi @k3rz0rg,
Your idea could be the best way. I guess you don't have duplicates in a single file. So,
1. Append the tables as a new table or what you need.
2. Select the columns that you think they can be the criterion.
3. Click remove duplicates.
Best Regards,
Dale
Hi @v-jiascu-msft,
thank you for the reply and supporting my idea. Rather than following the messy way, for now I'm just keeping it simple and doing the same thing as you showed.
Unfortunately, I do have multiple columns with duplicate values, for example one person has multiple report page views; what I did was
Seems like it worked so far, have to wait for few more tests but I guess this steps might work for other people with same issue as well. I am marking your reply as answer since that gave me the hint of selecting multiple columns.
Regards,
K3
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
Check out the November 2024 Power BI update to learn about new features.
User | Count |
---|---|
121 | |
99 | |
90 | |
72 | |
62 |
User | Count |
---|---|
140 | |
121 | |
106 | |
98 | |
94 |