Dataview plugin snippet showcase

Someone else asked a similar question, and then I found this post, and a hack to provide a solution for you as well.

The trick/hack is to use regexreplace() to insert the thousand separator. So do something like the below to achieve the output. I suggest keeping the numbers as numbers, so you can keep using them for calculations.


`= regexreplace("1234567.12", "\B(?=(\d{3})+(?!\d))", ",") `

TABLE regexreplace(someNumberField, "\B(?=(\d{3})+(?!\d))", ",") as "nice number"
....

Hope this helps, and that you’re still in search for this answer… :smiley:

1 Like