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
I have read the similar posts but nothing worked with me.
I have a table with months (the end of each month date) and the sales target for each month.
I need to calculate the YTD target
the table is below, YTD target should be 52, but when I try
Solved! Go to Solution.
Hi @amaniramahi
TOTALYTD does not work the way you expect it to. Check it out here
Try this instead:
Measure =
CALCULATE (
SUM ( Target[Target] ),
Target[Month] <= TODAY (),
Target[Month] >= DATE ( YEAR ( TODAY () ), 1, 1 )
)
Hi @amaniramahi
TOTALYTD does not work the way you expect it to. Check it out here
Try this instead:
Measure =
CALCULATE (
SUM ( Target[Target] ),
Target[Month] <= TODAY (),
Target[Month] >= DATE ( YEAR ( TODAY () ), 1, 1 )
)
Thank @AlB ! that worked !
apology but I am new to power bi, I guess I will go through the whole website you provided!
Thanks again
@MauriceMecowe thanks for the reply.
I already have created a datetable with continuous dates and created a relationship between the datetable and the dates in this table. didn't work either 😞
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 38 | |
| 36 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |