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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Best Practice when dealing with a column that has a number (but is not really used as such)

So, as the title of my post suggest, I have a column that is a number.   It is the line number of a PO.    For example, 

 

Order          Line       Qty     Item 

A123-G          1          19      Red item

A123-G          2          4        Blue item

A123-G          3          13      Green item

 

Although I have no reason to sum this line up (1+2+3) or really any other math, I do need to count the number of lines, and I frequently like to sort the lines in order ascending or descending order.   

 

I'm sure this is a common scenario - what is the best practice?    A data field as Text  or  as a Whole Number  ?  

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

If you want to have them sort you will want to go with whole number. 

If they are text 12 < 2.  

Just make sure to set the default aggregation to "Don't summarize"

jdbuchanan71_0-1631721860613.png

 

View solution in original post

1 REPLY 1
jdbuchanan71
Super User
Super User

If you want to have them sort you will want to go with whole number. 

If they are text 12 < 2.  

Just make sure to set the default aggregation to "Don't summarize"

jdbuchanan71_0-1631721860613.png

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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