cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pokhani
Helper III
Helper III

create custom fiscal qtr and fiscal year

hi Everyone, 

am trying to create a custom fiscal quarter in power apps from date picker.  we have a fiscal year starting from Nov to Oct, so if the date picker select the date a Dec 1,2019 than the text input be FY20Q1

 

 

pokhani_0-1655837026448.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Corissandageri
Responsive Resident
Responsive Resident

Something like this?

"FY"& Text( DateAdd( DatePicker3.SelectedDate, 2, Months ),
"yy" )& Switch(Text(DatePicker3.SelectedDate, "[$-en-US]mm"),"01","Q2","02","Q2","03","Q2","04","Q3","05","Q3","06","Q3","07","Q4","08","Q4","09","Q4","10","Q1","11","Q1","12","Q1")

View solution in original post

3 REPLIES 3
Corissandageri
Responsive Resident
Responsive Resident

Something like this?

"FY"& Text( DateAdd( DatePicker3.SelectedDate, 2, Months ),
"yy" )& Switch(Text(DatePicker3.SelectedDate, "[$-en-US]mm"),"01","Q2","02","Q2","03","Q2","04","Q3","05","Q3","06","Q3","07","Q4","08","Q4","09","Q4","10","Q1","11","Q1","12","Q1")

yeah  let me give a try 

 

rubin_boer
Super User
Super User

hi @pokhani if you wish to try an alternative:

 

With(
    {
        _month: Month(yourDatePicker.SelectedDate),
        _year: Year(yourDatePicker.SelectedDate)
    },
    With(
        {
            __month: If(_month = 12,_month - 11, _month + 1), //starting teh fiscal at Dec
            __year: If(_month = 12,_year + 1, _year) //ensure all periods have the same year
        },
        "FY" & Right(__year,2) & "Q" & __month
    )
)

Result

rubin_boer_0-1655840515738.png

now 2019

rubin_boer_1-1655840607677.png

01 jan 2019 

rubin_boer_2-1655840651092.png

 

 

hope it helps,

R

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (5,189)