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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
pchazirakis
New Member

power query

hello I have an issue with collecting data from multiple CSV files 

I have several CSV files that have the data in vertical order with heders in column 1 and data in column 2. 

I need to program a query to collect the data from all the CSVs that I put in a file, take the data from each column 2, and present them to an excel sheet in lines.

The problem is that when it takes the decimal numbers it removes the decimal point "."  and the numbers are wrong

4 REPLIES 4
Anonymous
Not applicable

Hi @pchazirakis ,

 

Are their column types Whole Number or Decimal Number?

 

I have a simple test on my side, everything works fine. My PBI version is the lastest one——Version: 2.102.845.0 64-bit (February 2022)

Eyelyn9_0-1646035449283.png

 

 

Could you please share me with your CSV or pbix file after removing sensitive data to help us clarify your scenario?

 

 

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

hello thanks for all your help I'm not very familiar with coding

my goal is from multiple CSV files with the below configuration to collect the second column make it vertical and make a table with the above values

I have made it to create the table but the numbers are not recognized the decimal point is deleted, the issue is that if the number is "0.014" it is transferred as "14" to the table if the number is "1.4"  it is transferred as "14"  and etc.

I need a step to replace the "." with "," in all the CSV files. I mast mention that the "," is used to separate the columns 

below I have the data from the CSV file : 

start of CSV file 

Test Name,MANUAL_107
Test Start Time,09:14:49 AM
Mass Average [mg/m3],0.036
Mass Minimum [mg/m3],0.033
Mass Maximum [mg/m3],0.039
Elapsed Time [s],Mass [mg/m3],Alarms,Errors
10,0.036,,
20,0.037,,
30,0.039,,
40,0.039,,
50,0.038,,
60,0.037,,
70,0.036,,
80,0.035,,
90,0.034,,
100,0.033,,
110,0.034,,
120,0.035,,
130,0.035,,
140,0.035,,
150,0.038,,
160,0.037,,
170,0.035,,
180,0.035,,

end of csv file

 

the result I want is a table like

2022-03-01 (5).png

 

pchazirakis
New Member

this is the csv file

 

 2022-02-24 (2).png

 

and the result i take is 

2022-02-24 (3)_LI.jpg

BA_Pete
Super User
Super User

Hi @pchazirakis ,

 

Can you provide examples of what your raw CSV data looks like, clarify whether the CSV files hold the same type of data in the same structure as each other, and provide an example of what you want the final output to look like please?

 

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/2336167#M8430... 

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.

Top Solution Authors