Forum Discussion

Syndicate_Admin's avatar
Syndicate_Admin
Icon for Administrator rankAdministrator
2 years ago
Solved

Total Sales by Cumulative Year without the date filter affecting you unless you change the year

Good afternoon.

I need to calculate the total cumulative sales per year, without the date filter affecting that amount.
For example, when I select any date in 2024, it gives me the total of the selected year and no matter what date of the same year is in the filter, however if I change the year in the filter, it gives me the total of that year.
They gave me a measure but it didn't work, I think because the date filter segmenter has the (Date) column generated by the Calendarauto, it is necessary to keep the filter like this.
The current measurement of my sale per year is as follows

Venta x año = CALCULATE ( TOTALYTD( [Ventatotal], Dimcalendario[Date], YEAR(Dimcalendario[Date]) = YEAR(TODAY())))

My date slicer is with the DATE field

  • Good afternoon, I was able to find a solution for it
    It is achieved with the following measure

    Total line consultation is my sales column

1 Reply

  • Good afternoon, I was able to find a solution for it
    It is achieved with the following measure

    Total line consultation is my sales column