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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
dennisroman
New Member

TOTALYTD NOT WORKING

Hello, I am trying to get the accumulated sales. These are my measures:

Total Neto = SUM(Registros[Neto])

Acumulado x Año = TOTALYTD([Total Neto],Registros[Fecha factura])
  • I have my Calendar table related to my Records table
  • My calendar table is marked as date table

My file https://1drv.ms/u/s!AoKF9E1Sd9IuoBsD4vrucUVvPTgb?e=HsqDLb 

 

dennisroman_0-1648336641264.pngdennisroman_1-1648336724121.png

This is the result I want to get. In my record table there is only 2019-2020.

dennisroman_2-1648336800678.png

Thanks in advance.

 

1 ACCEPTED SOLUTION
tackytechtom
Super User
Super User

Hi @dennisroman ,

 

Here a potential solution: 

tomfox_1-1648374064504.png

Here the measure:

TomsYTDMeasure = 
TOTALYTD([Total Neto], 'Calendario'[Date])

 

Please note, the measure will not work for only choosing "Mes" without selecting a specific year. The YTD function cannot to be used accross years.

 

Does this help? 🙂

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

View solution in original post

2 REPLIES 2
dennisroman
New Member

Thanks a lot. the solution helped me a lot

tackytechtom
Super User
Super User

Hi @dennisroman ,

 

Here a potential solution: 

tomfox_1-1648374064504.png

Here the measure:

TomsYTDMeasure = 
TOTALYTD([Total Neto], 'Calendario'[Date])

 

Please note, the measure will not work for only choosing "Mes" without selecting a specific year. The YTD function cannot to be used accross years.

 

Does this help? 🙂

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors
Top Kudoed Authors