Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Syndicate_Admin
Administrator
Administrator

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

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

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

Asquil_0-1708372943427.png

Total line consultation is my sales column

View solution in original post

1 REPLY 1
Syndicate_Admin
Administrator
Administrator

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

Asquil_0-1708372943427.png

Total line consultation is my sales column

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.