-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Formatting is limited in Formula Columns #54
Comments
Interesting problem. It seems like there's a couple ways we could approach solving this. The simplest would be just adding a formatting option for showing 0 decimals (which is fine and totally easy, methinks). But this doesn't allow you to remove commas... Other ways we could approach this:
I might do a little investigation on (2). I'd be interested to see the implications. |
A third approach, which is future proof for the world where we add more formatting options, is breaking out our existing formatting options into more sensible groups instead of lumping them all as one. For example, we could have Being able to choose the type of the number and additional formatting options seems super sensible. If we added color formatting options, we would clearly want that broken out into a separate section as well. The reason we didn't do this initially is because it gets into a battle of screen real estate & discoverability issues that arise from working around screen real estate issues that we weren't ready for. |
I hope you don't mind me jumping in here. |
@twelsh37 thanks for the input! Totally agree that they are functionally different, and so should be visible differently in icons... As a display of our thanks of you commenting, and so you know we really do appreciate your input, I'll make sure we get a new icon out w/in the next week. You get cred :) |
@twelsh37 peep the above PR if you so desire! We've got new icons and sheet functions for treating FLOATs and INTs separate. By-by to treating things as just "numbers" - woo! |
Describe the bug
The potential format options for a number series is dependent on whether the column is a
float
or anint
. For most of the format options this isn't an issue. For example, theAccounting
format option treats both floats and ints in the same manner. However, for thedefault
andplain text
formatting options, floats and ints are treated differently. Specifically, in theplain text
anddefault
formatting option, afloat
has a trailing.0
and anint
does not.In a data column, its easy to convert the dtype from
float
toint
in order to get rid of the trailing.0
. But there is no way to convert a formula column from afloat
to anint
. The only dtype manipulation available is to use thevalue
formula which converts a series to a number series.To Reproduce
Date
, that is a datetime series.Year
, and use the formula=YEAR(Date)
2,022.0
Year
column fromDefault
toPlain Text
in order to get rid of the,
.0
and no way to remove it.Expected behavior
I expect to be able to remove the
.0
from my data. Preferably, I want to change thedtype
of the column through the column control panel, even for formula columns. In lieu of that, I want to be able to use formulas to specify the dtype of my column with more granularity. For example, I expect there to beINT
andFLOAT
Mito formulas.Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: