Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

power query data format

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Power Query data format

Power Query data format

ResolvedVersion 365

Filip has attended:
Excel Intermediate course

Power Query data format

Hi Jens,

Just wonder if Power query from definition keeps the data Number format as the original Csv file, or if this has to be edited for each column separately. I've found some issues with calculating some numbers from queried tab by existing Pivot.

Thanks,
Filip

RE: Power Query data format

Hi Filip,

Thank you for the forum question.

Power Query will analyse the data and determine the data type. Power Query will not keep the data Number format as the original Csv file.

Power Query will look at each column and if you have numbers in the column, it will number format the column.

You can change the formats in Power Query. Power Query will remember the steps so it will do exactly the same steps when you add more data.

Kind regards

Jens Bonde
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

Sat 6 May 2023: Automatically marked as resolved.

Excel tip:

Use RANDBETWEEN to generate random numbers

There may be occassions where you need to generate random numbers in your spreadsheet. Use the RANDBETWEEN function to generate random numbers between two values that you specify.

The function looks like this:

=randbetween(LOW,HIGH)

where LOW is the lowest number you want generated; and HIGH is the highest number you want generated.

This formula will work with both positive and negative LOWs and HIGHs. Also it will only generate integer numbers unless forced to do otherwise by the following:

=randbetween(LOW*10^PRECISION,
HIGH*10^PRECISION)/(10^PRECISION).

where PRECISION represents the levels of decimal precision needed (i.e. if you need numbers with one decimal place, PRECISION would be 1; 2 for two decimal places and so on).

One final note, if the RANDBETWEEN formula does not work in your spreadsheet or returns a "#NAME" error, you need to install the Analysis Toolpak Add-In. You will need to press F2 then Enter following the installation.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.