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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
jjkmd
Helper I
Helper I

quick question on Data Types to use for Account ID's that are numbers

New to data modeling - I did try to search this but it's such as simple question I couldn't find a post.  

 

My data has Patient Name (Text), but also "Medical Record Number"  "Account Number" "Transaction ID" "CPT Code" "Modifier" etc.

 

All those are strings of numbers from 2 to 12 digits long.  I can't imagine needing to sum() min() max() these numbers - they basically serve as identification digits, not a number I would want to perform calculations on.  They are digits I'll want to aggregate and filter on though.

 

Are there best practices on how to handle these?  Keep them as numbers because there is some background DB optimization reason to do so?  Convert them to Text because thats technically how they are used and this avoids other issues? 

 

Same for things like Zip code?

1 ACCEPTED SOLUTION
Mariusz
Community Champion
Community Champion

Hi @jjkmd 

 

The simple answer is, everything that you are not performing any aggregations on can be set as data type text, it will make your life easier when you are bringing any of this column to your visual, by grouping them rather then agregating as default behaviour, performance or size of the model is not affected, as it would be in different types of DB's like SQL for example.

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
Mariusz Repczynski

 

View solution in original post

1 REPLY 1
Mariusz
Community Champion
Community Champion

Hi @jjkmd 

 

The simple answer is, everything that you are not performing any aggregations on can be set as data type text, it will make your life easier when you are bringing any of this column to your visual, by grouping them rather then agregating as default behaviour, performance or size of the model is not affected, as it would be in different types of DB's like SQL for example.

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
Mariusz Repczynski

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.