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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi guys
I've created YTD in the following period 01/01 --> 10/27 with the following formula, but I'm having trouble with incorporating the sameperiodlastyear formula in it:
Actual YTD ($) = TOTALYTD (sum(f_sales[Actual ($)]) ; d_time[calender_date] ; DATESBETWEEN(d_time[calender_date] ; "01/01";"10/27"))
I've also postet a picture, since it's easier to see
I appreciate any ideas of how to get the same periodlastyear
Thanks in advance
Solved! Go to Solution.
I got it to work with Calculate instead of TOTALYTD. Not sure what the difference is, but it works 🙂
Thanks for the help
Try wrapping Datesbetween with sameperiodlastyear
For some reason. it's not possible to have both the sameperiodlastyear and datesbetween in the same formula 😞
Br
Pastrupgaard
Remove the last bracket please
I see a Red ")" in the image you posted
My bad 🙂
I've corrected the formula, but there is no data output... I've recreated the data with a stupid workaround (so i know the data is there) and now i'm trying to make it smarter with this formula.
Any smart ideas?
Br
Pastrupgaard
I got it to work with Calculate instead of TOTALYTD. Not sure what the difference is, but it works 🙂
Thanks for the help
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 37 | |
| 35 | |
| 34 | |
| 28 |
| User | Count |
|---|---|
| 136 | |
| 99 | |
| 73 | |
| 66 | |
| 65 |