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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
Super User
Super User

@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
Super User
Super User

@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 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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