Hello everyone,
I'm new to PowerBi and DAX so please bear with me.
Here's an example of the table I'm working on
Now, I would like to calculate TOTALYTD so this is what I write in DAX
YTD Fatturato = TOTALYTD(SUM(PowerBI_VenditePerGgCittaFamTipocli[Importo]); PowerBI_VenditePerGgCittaFamTipocli[DataOrdine]; all(PowerBI_VenditePerGgCittaFamTipocli[DataOrdine]))
And I get:
which the sum of revenue by month. I would like to add up the value each month, each year (it goes until 2016) so to get the total.
I thought the issue was with the dates, so I create a Date Table and used that instead, but with no improvement.
What am I doing wrong?
Thanks a lot