Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
Hi All,
Please help me in correcting my YTD calculation as its giving me blank value since starting of the new year.
Previous Calculation Used ( It was working corretly till 31st Dec):
Solved! Go to Solution.
Try this:
CALCULATE(
SUM(FactsTable[Data]),
DATESINPERIOD('Date'[DateKey], TODAY(), -12, MONTH)
)
Hi,
could you please state the desired result?
Are you looking for data in the current year? Data in the last 12 months from the current date?
Yes I want data in the last 12 months from current month. So my YTD values will show data till Dec'22.
My calculation was working completely fine till last week, not sure where the problem is in the calculation that its showing blank now.
Try this:
CALCULATE(
SUM(FactsTable[Data]),
DATESINPERIOD('Date'[DateKey], TODAY(), -12, MONTH)
)
Thanks for the help.
It worked after few corrections !!!
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 |
|---|---|
| 65 | |
| 65 | |
| 45 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 115 | |
| 114 | |
| 38 | |
| 36 | |
| 26 |