Forum Discussion
amaniramahi
Helper V
7 years agoTOTALYTD not working
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...
- 7 years ago
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 )
)
MauriceMecowe
Resolver II
7 years ago- AlB7 years ago
Community Champion
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 )
)- amaniramahi7 years ago
Helper V
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
- amaniramahi7 years ago
Helper V
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 :(