The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I have taken over a file that already had a default calendar table. My company's fiscal year starts on 4/1 each year and am looking to make adjustments to the calendar table to reflect this. Right now coding is
Solved! Go to Solution.
Hi @sportyarod
If your fiscal year starts in April, then i suppose _startOfFiscalYear should equal 4 . but I'd suggest you just use below measure,
FiscalYearNum =
YEAR([Date]) + IF(MONTH([Date]) < 4, -1, 0)
to continue to get the offset Fiscal year, use below measure.
FiscalYear = "FY" & FORMAT([FiscalYearNum] - 1865, "000")
Thanks
Mason
Hi @sportyarod,
Thanks for reaching out to the Microsoft fabric community forum.
It looks like you want to make changes in the calender table. As @techies and @MasonMA both have responded to your query, kindly go through the response and check if it solves your issue.
I would also take a moment to thank @techies and @MasonMA, for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.
If I misunderstand your needs or you still have problems on it, please feel free to let us know.
Best Regards,
Hammad.
Community Support Team
If this post helps then please mark it as a solution, so that other members find it more quickly.
Thank you.
Hi @sportyarod please try this
Fiscal Year =
VAR FiscalStartMonth = 4
VAR FiscalYearEnd = IF(
MONTH('date'[Date]) >= FiscalStartMonth,
YEAR('date'[Date]) + 1,
YEAR('date'[Date])
)
RETURN
"F" & (FiscalYearEnd - 1865)
Hi @sportyarod
If your fiscal year starts in April, then i suppose _startOfFiscalYear should equal 4 . but I'd suggest you just use below measure,
FiscalYearNum =
YEAR([Date]) + IF(MONTH([Date]) < 4, -1, 0)
to continue to get the offset Fiscal year, use below measure.
FiscalYear = "FY" & FORMAT([FiscalYearNum] - 1865, "000")
Thanks
Mason
User | Count |
---|---|
28 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
36 | |
14 | |
12 | |
7 | |
7 |