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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
richard-powerbi
Post Patron
Post Patron

Why is Index column by default Decimal Number?

Usually an added Index column is a Whole Number as far as my experience goes.

Why is it by default a Decimal Number in Power Query?

As a result I'm always adding a step to make it a Whole Number. 

  • Is it possible to add an Index column with my desired Data Type directly?

In general I'm wondering what's best practice for performance out of these options:

  • Adding extra step in Power Query for changing Data Type to Whole Number
  • Change Data Type under Data > Modeling to Whole Number
  • Leave it at Decimal Number
1 REPLY 1
Anonymous
Not applicable

Because you may want to increment by .1 or .01. 

Most CPUs handle floating point (decimal) numbers as efficiently as integers (whole numbers). I would not think that performance improves by changing the type to whole number.

Regards,

Mike

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors