Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi all,
I have a small question regarding YTD and MTD calculation with filters for weeks in Power BI:
I want to create a card which will show this years YTD vs last years YTD as a percentage, but for some reason, PBI only calculates YTD measure from the first date in the selected week. I have tried to bypass this problem with the following measures:
Solved! Go to Solution.
Hi all,
Turns out, I was using the correct formulas, but my Date column in my Calendar was not Marked as Date Table, and that was causing this issue.
Hi @DJOXXXA
Try this.
Sales Year To Date = CALCULATE( [Sales], DATESYTD( 'Calendar'[Date] ) )
Dear Mariusz,
Thank you for your reply! I have this formula set up already, but it is not working properly. As you can see, first picture represents the table without any slicers:
And this picture represents the same table with slicer for week: (as you can see, PBI recalculates YTD measure from the first date in the selected week, not from the January 1st)
Hi all,
Turns out, I was using the correct formulas, but my Date column in my Calendar was not Marked as Date Table, and that was causing this issue.
Thanks, sorry for wasting your time 😞
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
76 | |
75 | |
56 | |
38 | |
34 |
User | Count |
---|---|
99 | |
56 | |
51 | |
44 | |
40 |