CHANGE format DATA (examples "1-1-2018" to "January")

Hello,
Iโ€™d like convert the value of column type Data [Periodo] from โ€œ1-1-2018โ€ to โ€œJanuaryโ€ (only month)
I tried with TEXT([Periodo]),โ€œmmmmโ€) but it doesnโ€™t work.

I tried also creating a new virtual column called โ€œMonthโ€ with the following app formula but it doesnโ€™t work when i group data in tables view
SWITCH(MONTH([Periodo]),
1,โ€œGennaioโ€,
2,โ€œFebbraioโ€,
3,โ€œMarzoโ€,
4,โ€œAprileโ€,
5,โ€œMaggioโ€,
6,โ€œGiugnoโ€,
7,โ€œLuglioโ€,
8,โ€œAgostoโ€,
9,โ€œSettembreโ€,
10,โ€œOttobreโ€,
11,โ€œNovembreโ€,
12,โ€œDicembreโ€,
โ€œโ€)

How can i change the format data correctly?
TKS

0 10 145
10 REPLIES 10

It should.
Post here your config

In the first screen I have used the formula SWITCH(MONTH([Periodo]),
1,โ€œGennaioโ€, 2,โ€œFebbraioโ€,3,โ€œMarzoโ€, 4,โ€œAprileโ€, 5,โ€œMaggioโ€, 6,โ€œGiugnoโ€, 7,โ€œLuglioโ€, 8,โ€œAgostoโ€, 9,โ€œSettembreโ€,10,โ€œOttobreโ€, 11,โ€œNovembreโ€, 12,โ€œDicembreโ€, โ€œโ€) but Itโ€™ doesnโ€™t work because the second image is the detail of โ€œGennaioโ€ and as you can see the total of Gennaio should be 21.622,32โ‚ฌ divided for each person


On the contrary, If i use the formula MONTH([Periodo]) the function โ€œgroup byโ€ works correctly

The expression works.

The problem is that you are not receiving the result you want using it on Group By.

Stick to the SWITCH() expression. We need to find out why the next view is not respecting itโ€™s group.
Can you show us the UX config for that view?
Also post here your tableโ€™s schema (All the columns on that table and itโ€™s column type)

Yes, indeed the expression itself should work.

This is the UX config for this View. Column [Mese1] is the virtual column with the app formula, [Risorsa] is like โ€œemployerโ€

and this is the structure of DB

I dont understand what you mean what you want to do.

If you read my second post probably you will understand. The problem is that the next view not respect the group if I use the formula SWITCH(MONTH([Periodo]),
1,โ€œGennaioโ€, 2,โ€œFebbraioโ€,3,โ€œMarzoโ€, 4,โ€œAprileโ€, 5,โ€œMaggioโ€, 6,โ€œGiugnoโ€, 7,โ€œLuglioโ€, 8,โ€œAgostoโ€, 9,โ€œSettembreโ€,10,โ€œOttobreโ€, 11,โ€œNovembreโ€, 12,โ€œDicembreโ€, โ€œโ€)
on the contrary It respects the group if I use the formula MONTH([Periodo]) but iโ€™d see the month in the extended version like โ€œJanuaryโ€

It says that [Mese1] is type Number. Is that right? It should be the one with column type Text and the formula you posted above:

SWITCH(
  MONTH([Periodo]),
  1, "Gennaio",
  2, "Febbraio",
  3, "Marzo",
  4, "Aprile",
  5, "Maggio",
  6, "Giugno",
  7, "Luglio",
  8, "Agosto",
  9, "Settembre",
  10, "Ottobre",
  11, "Novembre",
  12, "Dicembre", 
  ""
)

Yes, I tried and If I turn number type in text type It lose the correct order of mounth but the group works correclyโ€ฆ maybe we are close to the solutionโ€ฆ

It should be Text, Number doesnโ€™t makes sence.
You could add numbers.
Instead of โ€˜Januaryโ€™ โ†’ โ€˜1. Januaryโ€™