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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors