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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Nihed
Helper III
Helper III

YTD in Power query

Hello,

 

Please how I can calculate YTD in power query ,what is the syntax please (urgent)

Thank you

1 ACCEPTED SOLUTION
ribisht17
Community Champion
Community Champion

@Nihed 

 

Please check this one https://powerusers.microsoft.com/t5/Power-Query/YTD-sum-of-columns-in-Power-Query-based-on-input-fro...

 

Thanks,

Ritesh

Mark my post as a solution if it helped you| Munde and Kudis (Ladies and Gentlemen) I like your Kudos!! !!

My YT Channel Dancing With Data !! Connect on Linkedin !!Power BI for Tableau Users 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Nihed ,

You can also refer the following links to get it by DAX:

Power BI Tips: Calculate Year-to-date Values

YTDSumOfSales = TOTALYTD([SumOfSales],’Calendar'[Date])

How to Create YTD Calculations in Power BI​

Sales YTD =
TOTALYTD(
    SUM(Orders[Sales]),
    Orders[Order_Date],
    ALL(Orders)
)

Best Regards

ribisht17
Community Champion
Community Champion

@Nihed 

 

Please check this one https://powerusers.microsoft.com/t5/Power-Query/YTD-sum-of-columns-in-Power-Query-based-on-input-fro...

 

Thanks,

Ritesh

Mark my post as a solution if it helped you| Munde and Kudis (Ladies and Gentlemen) I like your Kudos!! !!

My YT Channel Dancing With Data !! Connect on Linkedin !!Power BI for Tableau Users 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.