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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Merge large text files to later compare with another file

Hello all,

I'm a novice at this so apologies if I have posted incorrectly. I have sales data which I want to compare with data from database and extract the missing data.

But I want to transform this data into a pivot table with detail of sales per day and per file as each day data can change.

So I need to identify/compare barcode, transaction date wk1 and wk2 in all the files and Qty . as the barcode may appear in week1 but not in week2 and the sale value and qty for each barcode on a particular transaction day will differ. 

Daily data files are receeived containing a two week period fri-sat, this data is not transactional so I need to see where the duplicates of differences are.

 

any questions please inbox me thanks

 example data

filenamestorebarcodeVATWK1_Transaction dateWk1_SalesValueW1_QtyWK2_Transaction dateWk2_SalesValueWk2_Qty
cfname_782110217_C27B6DB41895053264304952021/05/20226.671 00
cfname_782110217_C27B6DB41895053264304952022/05/202200 00
cfname_782110217_C27B6DB41895053264304952023/05/202200 00
cfname_782110217_C27B6DB41895053264304952024/05/20226.671 00
cfname_782110217_C27B6DB41895053264304952025/05/202200 00
cfname_782110217_C27B6DB41895053264304952026/05/202200 00
cfname_782110217_C27B6DB41895053264304952027/05/202200 00
cfname_781961865_F91D7F541895053264304952021/05/20226.671 00
cfname_781961865_F91D7F541895053264304952022/05/202200 00
cfname_781961865_F91D7F541895053264304952023/05/202200 00
cfname_781961865_F91D7F541895053264304952024/05/20226.671 00
cfname_781961865_F91D7F541895053264304952025/05/202200 00
cfname_781961865_F91D7F541895053264304952026/05/202200 00
cfname_781961865_F91D7F541895053264304952027/05/202200 00
cfname_781455317_ADFA50A418950532643049520 0021/05/20226.671
cfname_781455317_ADFA50A418950532643049520 0022/05/202200
cfname_781455317_ADFA50A418950532643049520 0023/05/202200
cfname_781455317_ADFA50A418950532643049520 0024/05/20226.671
cfname_781455317_ADFA50A418950532643049520 0025/05/202200
cfname_781455317_ADFA50A418950532643049520 0026/05/202200
cfname_781455317_ADFA50A418950532643049520 0027/05/202200
cfname_781455317_ADFA50A41895053264345212014/05/202200 00
cfname_781455317_ADFA50A41895053264345212015/05/202200 00
cfname_781455317_ADFA50A41895053264345212016/05/20228.331 00
cfname_781455317_ADFA50A41895053264345212017/05/202200 00
cfname_781455317_ADFA50A41895053264345212018/05/202200 00
cfname_781455317_ADFA50A41895053264345212019/05/202200 00
cfname_781455317_ADFA50A41895053264345212020/05/202200 00
cfname_781455317_ADFA50A41895053264347032014/05/202200 00
cfname_781455317_ADFA50A41895053264347032015/05/202200 00
cfname_781455317_ADFA50A41895053264347032016/05/202213.331 00
cfname_781455317_ADFA50A41895053264347032017/05/202200 00
cfname_781455317_ADFA50A41895053264347032018/05/202200 00
cfname_781455317_ADFA50A41895053264347032019/05/202200 00
cfname_781455317_ADFA50A41895053264347032020/05/202200 00
cfname_781316808_C6C172D418950532643049520 0021/05/20226.671
cfname_781316808_C6C172D418950532643049520 0022/05/202200
cfname_781316808_C6C172D418950532643049520 0023/05/202200
cfname_781316808_C6C172D418950532643049520 0024/05/20226.671
cfname_781316808_C6C172D418950532643049520 0025/05/202200
cfname_781316808_C6C172D418950532643049520 0026/05/202200
cfname_781316808_C6C172D418950532643049520 0027/05/202200
cfname_781316808_C6C172D41895053264345212014/05/202200 00
cfname_781316808_C6C172D41895053264345212015/05/202200 00
cfname_781316808_C6C172D41895053264345212016/05/20228.331 00
cfname_781316808_C6C172D41895053264345212017/05/202200 00
cfname_781316808_C6C172D41895053264345212018/05/202200 00
cfname_781316808_C6C172D41895053264345212019/05/202200 00
cfname_781316808_C6C172D41895053264345212020/05/202200 00
cfname_781316808_C6C172D41895053264347032014/05/202200 00
cfname_781316808_C6C172D41895053264347032015/05/202200 00
cfname_781316808_C6C172D41895053264347032016/05/202213.331 00
cfname_781316808_C6C172D41895053264347032017/05/202200 00
cfname_781316808_C6C172D41895053264347032018/05/202200 00
cfname_781316808_C6C172D41895053264347032019/05/202200 00
cfname_781316808_C6C172D41895053264347032020/05/202200 00
cfname_781179336_1C5453F418950532643049520 0021/05/20226.671
cfname_781179336_1C5453F418950532643049520 0022/05/202200
cfname_781179336_1C5453F418950532643049520 0023/05/202200
cfname_781179336_1C5453F418950532643049520 0024/05/20226.671
cfname_781179336_1C5453F418950532643049520 0025/05/202200
cfname_781179336_1C5453F418950532643049520 0026/05/202200
cfname_781179336_1C5453F418950532643049520 0027/05/202200
cfname_781179336_1C5453F41895053264345212014/05/202200 00
cfname_781179336_1C5453F41895053264345212015/05/202200 00
cfname_781179336_1C5453F41895053264345212016/05/20228.331 00
cfname_781179336_1C5453F41895053264345212017/05/202200 00
cfname_781179336_1C5453F41895053264345212018/05/202200 00
cfname_781179336_1C5453F41895053264345212019/05/202200 00
cfname_781179336_1C5453F41895053264345212020/05/202200 00
cfname_781179336_1C5453F41895053264347032014/05/202200 00
cfname_781179336_1C5453F41895053264347032015/05/202200 00
cfname_781179336_1C5453F41895053264347032016/05/202213.331 00
cfname_781179336_1C5453F41895053264347032017/05/202200 00
cfname_781179336_1C5453F41895053264347032018/05/202200 00
cfname_781179336_1C5453F41895053264347032019/05/202200 00
cfname_781179336_1C5453F41895053264347032020/05/202200 00
cfname_781035288_9BE5A55418950532643049520 0021/05/20226.671
cfname_781035288_9BE5A55418950532643049520 0022/05/202200
cfname_781035288_9BE5A55418950532643049520 0023/05/202200
cfname_781035288_9BE5A55418950532643049520 0024/05/202200
cfname_781035288_9BE5A55418950532643049520 0025/05/202200
cfname_781035288_9BE5A55418950532643049520 0026/05/202200
cfname_781035288_9BE5A55418950532643049520 0027/05/202200

 

 

 

3 REPLIES 3
Anonymous
Not applicable

The data is receievd on a daily basis any missing sales are receieved on a two week basis so at one point in time we would have complete data.

amitchandak
Super User
Super User

@Anonymous , I such a case we create a barcode dimension and Date table with week and compare week-on-week data. But here you have the same dates in two-column, which is not very clear

Can you share the expected output?

 

 

refer if needed

Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period,
Custom Period till date: https://youtu.be/aU2aKbnHuWs&t=145s

 

Any Weekday Week - Start From Any day of Week
https://community.powerbi.com/t5/Community-Blog/Any-Weekday-Week-Decoding-Date-and-Calendar-2-5-Power-BI-Turning/ba-p/1187482
https://medium.com/chandakamit/cheat-sheet-any-weekdays-week-start-date-just-one-variable-apart-6b2e6f593958

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
Anonymous
Not applicable

the expected output is a simple output to track sales

ie Store, Transactiondate Barcode, Qty Total Sales

 

No duplications

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Solution Authors
Top Kudoed Authors