Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
lorenz0210
Helper I
Helper I

How do you create column for fiscal year that is different from calendar year with Label

Hello everyone, 

 

I am trying to create our fiscal calendar with the following logic/conditions and label in the slicer:

lorenz0210_0-1697651741495.png

*Sep, Oct, Nov and Dec 2023 will be labeled as "2023 Q4", while Jan-Dec of the following year should show the normal quarter as Q1, Q2, Q3, Q4. 

I have created a fiscal year calendar below: 

FY Calendar =
VAR _calendar =
    CALENDAR( "9/1/2023","12/31/2024")
RETURN
    ADDCOLUMNS (
        _calendar,
        "YEAR", YEAR ( [Date] ),
        "MonthNumber", MONTH ([Date] ),
        "Month", FORMAT( [Date], "mmmm" ),
        "Quarter", "QTR" & FORMAT( [Date], "Q"),
        "QuarterNumber", FORMAT( [Date], "Q"),
        "MonthYearNumber", FORMAT([Date], "yy mm"),
        "Month Year", FORMAT([Date],"mmm yyyy"))
 
I have been dealing with for 2 days and having no luck. It sounds easy but already having headache. 
I am not sure if I am missing condition. 
 
Hope somebody can help. 
 

 

 

 

 

1 ACCEPTED SOLUTION

Hi, @lorenz0210 

 

You can try the following methods.

Column = IF(YEAR([Date])=YEAR(TODAY())&&MONTH([Date])>=9,YEAR([Date])&" "&"Q4",YEAR([Date])&" "&[Q])

vzhangti_0-1698717838632.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
v-zhangti
Community Support
Community Support

Hi, @lorenz0210 

 

You can try the following methods.

Column:

Q = "Q"&QUARTER([Date])
Label = IF(YEAR([Date])=YEAR(TODAY()),YEAR([Date])&" "&[Q],IF(YEAR([Date])=YEAR(TODAY())+1,[Q]))

vzhangti_0-1697766592121.pngvzhangti_1-1697766648986.png

Is this the result you expect? Please see the attached document.

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

hi @v-zhangti , 

 

Appreciate the help. Is there a way we can adjust the Sept-Dec of 2023 to Q4 and then Normal Quarters for the 2024 year? Also, is it possible we can sort the month number as September being the 1st on the calendar since it is the start of our fiscal year. 

 

Apologies as I am new and still learning.

 

Similar to this: 

lorenz0210_0-1698068738812.png

 

Hi again @v-zhangti , 

 

I've tried again creating a new column measure that will show FYQuarter using: 

FYQuarter =
"FY" &IF(MONTH('Date'[Date])>=8, YEAR('Date'[Date]),YEAR('Date'[Date]))&"
Quarter"&CEILING(IF(MONTH('Date'[Date])>=8, YEAR(MONTH('Date'[Date])-8)/4,(MONTH('Date'[Date])+4)/3),1)
 
 But I am getting a different result and not getting the desired result. 
 
lorenz0210_0-1698103122109.png

 

Any help will be greatly appreciated!

Thank you in advance.

Hi, @lorenz0210 

 

Please show the output you currently expect in Excel or a picture.

 

Best Regards

Here is the expected result: 

 

lorenz0210_0-1698152800028.png

 

Hi, @lorenz0210 

 

You can try the following methods.

Column = IF(YEAR([Date])=YEAR(TODAY())&&MONTH([Date])>=9,YEAR([Date])&" "&"Q4",YEAR([Date])&" "&[Q])

vzhangti_0-1698717838632.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.