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
I have an issue creating a measure which offsets the fiscal year by 1, but I have yet to find a solution.
I have a datetable with fiscal year, fiscalyearnumeriic, fiscalyearoffset etc.
I have managed to create a Fiscal Year To date measure using this:
Solved! Go to Solution.
Hi, If you still seaching for the solution, please share sample data representing your dataset. all these solutions will work depending upon how you are deploying. also share the desired output based on the sample data.
Can try below measure:
Rev PY YTD =
CALCULATE(
SUM(Sales[Rev]),
DATEADD(DATESYTD(Calendar_Tbl[Date]),-1,YEAR)
)
Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !
Thank you~
Hi. xifeng_L. Thank you for your reply. Where do you take fiscal year into account - as I see it it will be based on the regular year?
Hello @betterreportsDK
Assuming you have a field like FiscalYearOffset in your calendar_tbl (which indicates an offset value), here’s how you can tweak your measure.
Rev YTD =
VAR vMaxDate = MAX(calendar_tbl[Date])
VAR vFiscalYearOffset = -1 -- Offset Fiscal Year by 1 (You can adjust this)
RETURN
CALCULATE(SUM(Sales[Rev]),ALL(calendar_tbl),
VALUES(calendar_tbl[FiscalYear] + vFiscalYearOffset), -- Apply Offset
calendar_tbl[Date] <= vMaxDate)
This formula assumes that you want to offset the fiscal year by subtracting one year. Adjust the vFiscalYearOffset as needed (e.g., use +1 if the logic requires advancing the fiscal year)
If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes 👍 are much appreciated!
Thank You
Dharmendar S
Hi Dharmendar S
Thank you for your suggestion. I get the error that "a single value for calendar_tbl[FiscalYear] cannot be be determined". I have defined FiscalYear is a whole number, which I think makes sense.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 14 | |
| 7 | |
| 4 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 23 | |
| 10 | |
| 10 | |
| 6 | |
| 5 |