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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
pavithra_viki
New Member

How to append .txt File in power BI? And refresh only the yearly files.

Consider 2017 file as below:

pavithra_viki_1-1723566644126.png
2017.txt

Install: 9 August, 2017 0:24 Window: XP User: 1234 MS Office: 2019
Install: 10 August, 2017 1:24 Window: 7 User: 4235 MS Office: 2017
Install: 11 August, 2017 2:24 Window: 7 User: 64563 MS Office: 2019
Install: 12 August, 2017 3:24 Window: XP User: 74563 MS Office: 2019
Install: 13 August, 2017 4:24 Window: XP User: 85674 MS Office: 2019
Install: 14 August, 2017 5:24 Window: XP User: 7456 MS Office: 2022
Install: 15 August, 2017 6:24 Window: 7 User: 234 MS Office: 2019
Install: 16 August, 2017 7:24 Window: XP User: 856 MS Office: 2018


Consider 2016 file as below:

pavithra_viki_2-1723566738791.png

Install: 8 December, 2016 9:24 Window: XP User: 1234 MS Office: 2019
Install: 9 December, 2016 10:24 Window: XP User: 4235 MS Office: 2019
Install: 10 December, 2016 11:24 Window: XP User: 64563 MS Office: 2019
Install: 11 December, 2016 12:24 Window: XP User: 74563 MS Office: 2019
Install: 12 December, 2016 13:24 Window: XP User: 85674 MS Office: 2019
Install: 13 December, 2016 14:24 Window: XP User: 7456 MS Office: 2022
Install: 14 December, 2016 15:24 Window: XP User: 234 MS Office: 2019
Install: 15 December, 2016 16:24 Window: XP User: 856 MS Office: 2018



Case:
I need to append these two file i.e., 2016 and 2017 file into single file.
In future if 2018 file is coming in, I need to load only 2018 file into power bi,, Like wise 2019 , etc (Loading recent year into power bi)
Problem :
It is a txt file. 
The file is not having the header part, I need to include Header and append. 


Kindly help me.


1 ACCEPTED SOLUTION
v-heq-msft
Community Support
Community Support

Hi @pavithra_viki ,

Based on your description, you can try the following steps:
1.Put all your txt files in the same folder and then get data from folder

vheqmsft_0-1723600823082.png

2.Choose the target folder and combine and transform them

vheqmsft_1-1723600970637.png

3.Choose the delimiter as space and click ok

vheqmsft_2-1723601092239.png

4.In the power query, you can do data cleaning, such as merge column 2,3,4,5 and change type as Date/Time and you can also rename the column as you want

vheqmsft_3-1723601340447.png

5.If you have other new file, put in the same folder and refresh preview or you can process desktop refresh

vheqmsft_4-1723601490635.png

vheqmsft_5-1723601612803.png

 

 

Best regards,
Albert He


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 



 

View solution in original post

1 REPLY 1
v-heq-msft
Community Support
Community Support

Hi @pavithra_viki ,

Based on your description, you can try the following steps:
1.Put all your txt files in the same folder and then get data from folder

vheqmsft_0-1723600823082.png

2.Choose the target folder and combine and transform them

vheqmsft_1-1723600970637.png

3.Choose the delimiter as space and click ok

vheqmsft_2-1723601092239.png

4.In the power query, you can do data cleaning, such as merge column 2,3,4,5 and change type as Date/Time and you can also rename the column as you want

vheqmsft_3-1723601340447.png

5.If you have other new file, put in the same folder and refresh preview or you can process desktop refresh

vheqmsft_4-1723601490635.png

vheqmsft_5-1723601612803.png

 

 

Best regards,
Albert He


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 



 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.