Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hello,
Please how I can calculate YTD in power query ,what is the syntax please (urgent)
Thank you
Solved! Go to Solution.
Please check this one https://powerusers.microsoft.com/t5/Power-Query/YTD-sum-of-columns-in-Power-Query-based-on-input-fro...
Thanks,
Ritesh
My YT Channel Dancing With Data !! Connect on Linkedin !!Power BI for Tableau Users
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
Please check this one https://powerusers.microsoft.com/t5/Power-Query/YTD-sum-of-columns-in-Power-Query-based-on-input-fro...
Thanks,
Ritesh
My YT Channel Dancing With Data !! Connect on Linkedin !!Power BI for Tableau Users
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 17 | |
| 16 | |
| 12 | |
| 8 | |
| 5 |